summaryrefslogtreecommitdiffstats
path: root/test/stream_test.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/stream_test.c')
-rw-r--r--test/stream_test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/stream_test.c b/test/stream_test.c
index 239c2c6..ffe1c18 100644
--- a/test/stream_test.c
+++ b/test/stream_test.c
@@ -291,7 +291,7 @@ static int receiver (void)
/*
* Read dataset from file into memory.
*/
- data = (int *) malloc (nelems * sizeof (int));
+ data = (int *) malloc ((size_t)(nelems * sizeof (int)));
status = H5Dread (dataset, H5T_NATIVE_INT, H5S_ALL, H5S_ALL, H5P_DEFAULT,
data);
H5Dclose (dataset);