summaryrefslogtreecommitdiffstats
path: root/test/chunk.c
diff options
context:
space:
mode:
authorPatrick Lu <ptlu@hawkwind.ncsa.uiuc.edu>1998-11-10 18:15:37 (GMT)
committerPatrick Lu <ptlu@hawkwind.ncsa.uiuc.edu>1998-11-10 18:15:37 (GMT)
commit75a9686b5161d218461656ca3e5a5aaf70f60bd0 (patch)
tree5e41a8bd1497f7fdef46111c6190a1dcaca2f830 /test/chunk.c
parent55b20c298edb75fe3cbb75324301eacc9610f04e (diff)
downloadhdf5-75a9686b5161d218461656ca3e5a5aaf70f60bd0.zip
hdf5-75a9686b5161d218461656ca3e5a5aaf70f60bd0.tar.gz
hdf5-75a9686b5161d218461656ca3e5a5aaf70f60bd0.tar.bz2
[svn-r895] added some extra casts because windows was having trouble converting to
a double from an unsigned int 64
Diffstat (limited to 'test/chunk.c')
-rw-r--r--test/chunk.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/test/chunk.c b/test/chunk.c
index 55f3f0f..c2533e7 100644
--- a/test/chunk.c
+++ b/test/chunk.c
@@ -285,7 +285,12 @@ test_diag (int op, hsize_t cache_size, hsize_t io_size, hsize_t offset)
H5Dclose (dset);
H5Fclose (file);
- return (double)nio/(double)nio_g;
+ /*
+ * The extra cast in the following statement is a bug
+ * workaround for the Win32 version 0.0 compiler.
+ * 1998-11-06 ptl
+ */
+ return (double)((hssize_t)(nio/nio_g));
}