summaryrefslogtreecommitdiffstats
path: root/test/file_handle.c
diff options
context:
space:
mode:
authorRaymond Lu <songyulu@hdfgroup.org>2007-04-05 19:47:16 (GMT)
committerRaymond Lu <songyulu@hdfgroup.org>2007-04-05 19:47:16 (GMT)
commit1a1346c5081d5e981c03a5a4ac3d1e28fffdc91d (patch)
treead8bdeedb4bf37d939401a4c617c3b4d0b6cc78d /test/file_handle.c
parent0919299628582670f9144167f3c7da6096fb58f1 (diff)
downloadhdf5-1a1346c5081d5e981c03a5a4ac3d1e28fffdc91d.zip
hdf5-1a1346c5081d5e981c03a5a4ac3d1e28fffdc91d.tar.gz
hdf5-1a1346c5081d5e981c03a5a4ac3d1e28fffdc91d.tar.bz2
[svn-r13592] Add a check for files bigger than 2GB and use fseeko if it's available,
because the OFFSET parameter of fseek is of the type LONG INT, not big enough for big files on most systems. Tested on smirom, sol, cu12.
Diffstat (limited to 'test/file_handle.c')
-rw-r--r--test/file_handle.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/file_handle.c b/test/file_handle.c
index 65dfa4f..4a4783a 100644
--- a/test/file_handle.c
+++ b/test/file_handle.c
@@ -22,7 +22,7 @@
#include "h5test.h"
-#define KB 1024
+#define KB 1024U
#define FAMILY_NUMBER 4
#define FAMILY_SIZE (1*KB)
#define FAMILY_SIZE2 (5*KB)
@@ -150,7 +150,7 @@ test_core(void)
/* Set property list and file name for CORE driver */
fapl = h5_fileaccess();
- if(H5Pset_fapl_core(fapl, CORE_INCREMENT, TRUE)<0)
+ if(H5Pset_fapl_core(fapl, (size_t)CORE_INCREMENT, TRUE)<0)
goto error;
h5_fixname(FILENAME[1], fapl, filename, sizeof filename);
@@ -225,7 +225,7 @@ test_family(void)
hid_t access_fapl = -1;
char filename[1024];
char dname[]="dataset";
- int i, j;
+ unsigned int i, j;
int *fhandle=NULL, *fhandle2=NULL;
int buf[FAMILY_NUMBER][FAMILY_SIZE];
hsize_t dims[2]={FAMILY_NUMBER, FAMILY_SIZE};