summaryrefslogtreecommitdiffstats
path: root/test/overhead.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/overhead.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/overhead.c')
-rw-r--r--test/overhead.c14
1 files changed, 12 insertions, 2 deletions
diff --git a/test/overhead.c b/test/overhead.c
index d95fed4..6aab340 100644
--- a/test/overhead.c
+++ b/test/overhead.c
@@ -239,9 +239,14 @@ test(fill_t fill_style, const double splits[],
if (verbose) {
if (H5Fflush(file, H5F_SCOPE_LOCAL)<0) goto error;
if (fstat(fd, &sb)<0) goto error;
+ /*
+ * The extra cast in the following statement is a bug workaround
+ * for the Win32 version 5.0 compiler.
+ * 1998-11-06 ptl
+ */
printf("%4lu %8.3f\n",
(unsigned long)i,
- (double)(sb.st_size-i*sizeof(int))/(double)i);
+ (double)((hssize_t)((sb.st_size-i*sizeof(int))/i)));
}
}
@@ -272,8 +277,13 @@ test(fill_t fill_style, const double splits[],
abort();
}
if (fstat(fd, &sb)<0) goto error;
+ /*
+ * The extra cast in the following statement is a bug workaround
+ * for the Win32 version 5.0 compiler.
+ * 1998-11-06 ptl
+ */
printf("%-7s %8.3f\n", sname,
- (sb.st_size-cur_size[0]*sizeof(int))/(double)cur_size[0]);
+ (double)((hssize_t)((sb.st_size-cur_size[0]*sizeof(int))/cur_size[0])));
}
close(fd);