summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorPatrick Lu <ptlu@hawkwind.ncsa.uiuc.edu>1998-11-19 19:17:26 (GMT)
committerPatrick Lu <ptlu@hawkwind.ncsa.uiuc.edu>1998-11-19 19:17:26 (GMT)
commitb31cc0e3abeb5b8dd93d74d384a0f2738230a1c2 (patch)
tree4bdf0669ec25e357ace740bca5edddbf241c4948 /test
parent3afdf4ac7ebf02e12aec2031f2422335bec067aa (diff)
downloadhdf5-b31cc0e3abeb5b8dd93d74d384a0f2738230a1c2.zip
hdf5-b31cc0e3abeb5b8dd93d74d384a0f2738230a1c2.tar.gz
hdf5-b31cc0e3abeb5b8dd93d74d384a0f2738230a1c2.tar.bz2
[svn-r932] added a cast for the (__int64)->double.
Diffstat (limited to 'test')
-rw-r--r--test/flush1.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/test/flush1.c b/test/flush1.c
index 40db166..17b2c46 100644
--- a/test/flush1.c
+++ b/test/flush1.c
@@ -107,8 +107,13 @@ main(void)
/* Write some data */
for (i=0; i<ds_size[0]; i++) {
+ /*
+ * The extra cast in the following statement is a bug workaround
+ * for the Win32 version 5.0 compiler.
+ * 1998-11-06 ptl
+ */
for (j=0; j<ds_size[1]; j++) {
- the_data[i][j] = (double)i/((double)j+1);
+ the_data[i][j] = (double)((hssize_t)(i/(j+1)));
}
}
if (H5Dwrite(dset, H5T_NATIVE_DOUBLE, space, space, H5P_DEFAULT,