summaryrefslogtreecommitdiffstats
path: root/test/flush1.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/flush1.c')
-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,