summaryrefslogtreecommitdiffstats
path: root/test/flush2.c
diff options
context:
space:
mode:
authorPatrick Lu <ptlu@hawkwind.ncsa.uiuc.edu>1998-11-19 16:33:23 (GMT)
committerPatrick Lu <ptlu@hawkwind.ncsa.uiuc.edu>1998-11-19 16:33:23 (GMT)
commit04979ec732605b34b956cc2c77e4d7fa75d59e47 (patch)
treeb4b6e5a65021ac4c15e05c5a2d302e5b00b084b4 /test/flush2.c
parent0336078c9f07b16a9f02758c810c7e9f244466a5 (diff)
downloadhdf5-04979ec732605b34b956cc2c77e4d7fa75d59e47.zip
hdf5-04979ec732605b34b956cc2c77e4d7fa75d59e47.tar.gz
hdf5-04979ec732605b34b956cc2c77e4d7fa75d59e47.tar.bz2
[svn-r927] had to put the extra cast in for the __int64 to double conversion.
I included a comment everywhere that this was needed.
Diffstat (limited to 'test/flush2.c')
-rw-r--r--test/flush2.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/test/flush2.c b/test/flush2.c
index f9ab526..4bc1362 100644
--- a/test/flush2.c
+++ b/test/flush2.c
@@ -128,7 +128,12 @@ main(void)
the_data)<0) goto error;
for (i=0; i<ds_size[0]; i++) {
for (j=0; j<ds_size[1]; j++) {
- error = fabs(the_data[i][j]-(double)i/((double)j+1));
+ /*
+ * The extra cast in the following statement is a bug workaround
+ * for the Win32 version 5.0 compiler.
+ * 1998-11-06 ptl
+ */
+ error = fabs(the_data[i][j]-(double)((hssize_t)(i/(j+1))));
assert(error<0.0001);
}
}