diff options
author | Raymond Lu <songyulu@hdfgroup.org> | 2012-10-22 19:46:03 (GMT) |
---|---|---|
committer | Raymond Lu <songyulu@hdfgroup.org> | 2012-10-22 19:46:03 (GMT) |
commit | e00ffb3e51e1325651713d0fbddd210c760df504 (patch) | |
tree | 1e1cb3d7323d9fc5ee4688f43b24ed20d0a54750 | |
parent | 29dec8ea7cf74b413c0e32e4b1a86b331507d5b8 (diff) | |
download | hdf5-e00ffb3e51e1325651713d0fbddd210c760df504.zip hdf5-e00ffb3e51e1325651713d0fbddd210c760df504.tar.gz hdf5-e00ffb3e51e1325651713d0fbddd210c760df504.tar.bz2 |
[svn-r22945] I fixed a few minor casting problems in enum.c. It's a followup commit for the test of the conversion function H5T__conv_enum_numeric (numeric type means integer or floating number).
Tested on tejeda - failed on tejeda and ostrich in the daily test.
-rw-r--r-- | test/enum.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/enum.c b/test/enum.c index 9178a2b..29b702d 100644 --- a/test/enum.c +++ b/test/enum.c @@ -190,7 +190,7 @@ test_conv(hid_t file) if(H5Dread(dset, H5T_NATIVE_DOUBLE, space, space, H5P_DEFAULT, data_double) < 0) FAIL_STACK_ERROR for(i = 0; i < (size_t)ds_size[0]; i++) - if(data1[i] != (unsigned)data_double[i]) { + if((int)data1[i] != (int)data_double[i]) { H5_FAILED(); printf(" 3. data1[%lu]=%d, data_double[%lu]=%d (should be same)\n", (unsigned long)i, (int)(data1[i]), @@ -234,7 +234,7 @@ test_conv(hid_t file) if(H5Dread(dset, H5T_NATIVE_DOUBLE, space, space, H5P_DEFAULT, data_double) < 0) FAIL_STACK_ERROR for(i = 0; i < (size_t)ds_size[0]; i++) - if(data1[i] != (unsigned)data_double[i]) { + if((int)data1[i] != (int)data_double[i]) { H5_FAILED(); printf(" 5. data1[%lu]=%d, data_double[%lu]=%d (should be same)\n", (unsigned long)i, (int)(data1[i]), |