diff options
author | Raymond Lu <songyulu@hdfgroup.org> | 2004-12-10 21:24:14 (GMT) |
---|---|---|
committer | Raymond Lu <songyulu@hdfgroup.org> | 2004-12-10 21:24:14 (GMT) |
commit | da3602be5d58b39b03f182d7db77a02b3b6be91c (patch) | |
tree | 79985df1002fc7365eec574f8ac0683f713541da /src | |
parent | 2ae1a93354a13c277963c63d014bc12e2035ebaf (diff) | |
download | hdf5-da3602be5d58b39b03f182d7db77a02b3b6be91c.zip hdf5-da3602be5d58b39b03f182d7db77a02b3b6be91c.tar.gz hdf5-da3602be5d58b39b03f182d7db77a02b3b6be91c.tar.bz2 |
[svn-r9653] Purpose: Bug fix
Description: In file H5FDsec2.c and H5FDlog.c, there's statements like
H5_ASSIGN_OVERFLOW(file->eof,sb.st_size,off_t,haddr_t);
It assumes sb.st_size from h5_stat_t is of type off_t. But on Windows, it
has type __int64. So the H5_ASSIGN_OVERFLOW statement may cause problem.
Instead of trying to do switch between Windows and other systems in H5FDsec2.c
and H5FDlog.c, define a substituting type in H5private.h to fix the problem.
On Windows, this type is __int64; on other systems, it is off_t.
Platforms tested: h5committest
Diffstat (limited to 'src')
-rw-r--r-- | src/H5FDlog.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/H5FDlog.c b/src/H5FDlog.c index 3c46da5..795ac65 100644 --- a/src/H5FDlog.c +++ b/src/H5FDlog.c @@ -595,7 +595,7 @@ H5FD_log_open(const char *name, unsigned flags, hid_t fapl_id, fa = H5P_get_driver_info(plist); file->fd = fd; - H5_ASSIGN_OVERFLOW(file->eof,sb.st_size,off_t,haddr_t); + H5_ASSIGN_OVERFLOW(file->eof,sb.st_size,h5_stat_size_t,haddr_t); file->pos = HADDR_UNDEF; file->op = OP_UNKNOWN; #ifdef WIN32 |