diff options
author | Elena Pourmal <epourmal@hdfgroup.org> | 2003-04-15 22:38:18 (GMT) |
---|---|---|
committer | Elena Pourmal <epourmal@hdfgroup.org> | 2003-04-15 22:38:18 (GMT) |
commit | b2a0a50eb1df739ded4649548e770e798bec9a22 (patch) | |
tree | b08f32283e0c3cdafe5a2a8e39c099c6c29ce958 | |
parent | 0d5bd9fe3ac79d53cb923a689935a409bb266f05 (diff) | |
download | hdf5-b2a0a50eb1df739ded4649548e770e798bec9a22.zip hdf5-b2a0a50eb1df739ded4649548e770e798bec9a22.tar.gz hdf5-b2a0a50eb1df739ded4649548e770e798bec9a22.tar.bz2 |
[svn-r6686]
Purpose: Windows port
Description: Windows cannot convert from _uint64_t to double. One of
the tests (test_set_local) used conversion to fill a data
buffer. Compilation failed on Windows.
Solution: Fixed the code not to use conversion
Platforms tested: CRAY T90IEEE, arabica, modi4 with parallel, Windows 2000
Only static tests (both debug and release) passed on Windows.
DLLs have multiple problems ;-)
Misc. update:
-rw-r--r-- | test/dsets.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test/dsets.c b/test/dsets.c index c18c24a..3f5d960 100644 --- a/test/dsets.c +++ b/test/dsets.c @@ -2382,7 +2382,8 @@ test_set_local(const char *filename, hid_t fapl) const hsize_t chunk_dims[2] = {2, 25}; /* Chunk dimensions */ hsize_t dset_size; /* Dataset size */ unsigned cd_values[2]={BOGUS2_PARAM_1, BOGUS2_PARAM_2}; /* Parameters for Bogus2 filter */ - hsize_t i,j,n; /* Local index variables */ + hsize_t i,j; /* Local index variables */ + double n; /* Local index variables */ TESTING("dataset filter 'set local' callback"); @@ -2390,7 +2391,7 @@ test_set_local(const char *filename, hid_t fapl) for (i = n = 0; i < 100; i++) for (j = 0; j < 200; j++) { points[i][j] = n++; - points_dbl[i][j] = (double)1.5*(double)n++; + points_dbl[i][j] = (double)1.5*n++; } /* Open file */ |