summaryrefslogtreecommitdiffstats
path: root/test/iopipe.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/iopipe.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/iopipe.c')
-rw-r--r--test/iopipe.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/test/iopipe.c b/test/iopipe.c
index 6cdbd2b..f7e3349 100644
--- a/test/iopipe.c
+++ b/test/iopipe.c
@@ -184,8 +184,15 @@ main (void)
hssize_t start[2];
hsize_t count[2];
+
+ /*
+ * The extra cast in the following statement is a bug
+ * workaround for the Win32 version 0.0 compiler.
+ * 1998-11-06 ptl
+ */
printf ("I/O request size is %1.1fMB\n",
- ((double)(size[0])*(double)(size[1]))/(1024.0*1024));
+ ((double)((hssize_t)(size[0]*size[1])))/(1024.0*1024));
+ // ((double)(size[0])*(double)(size[1]))/(1024.0*1024));
/* Open the files */