summaryrefslogtreecommitdiffstats
path: root/test/fillval.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/fillval.c')
-rw-r--r--test/fillval.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/fillval.c b/test/fillval.c
index c794ff9..693bdc6 100644
--- a/test/fillval.c
+++ b/test/fillval.c
@@ -396,7 +396,7 @@ test_rdwr(hid_t fapl, const char *base_name, H5D_layout_t layout)
for (i=0; i<1000; i++) {
for (j=0, odd=0; j<5; j++) {
hs_offset[j] = rand() % cur_size[j];
- odd += hs_offset[j]%2;
+ odd += (int)(hs_offset[j]%2);
}
should_be = odd ? fillval : 9999;
if (H5Sselect_hyperslab(fspace, H5S_SELECT_SET, hs_offset, NULL,
@@ -594,7 +594,7 @@ test_extend(hid_t fapl, const char *base_name, H5D_layout_t layout)
for (i=0; i<1000; i++) {
for (j=0, odd=0; j<5; j++) {
hs_offset[j] = rand() % cur_size[j];
- odd += hs_offset[j]%2;
+ odd += (int)(hs_offset[j]%2);
}
should_be = odd ? fillval : 9999;
if (H5Sselect_hyperslab(fspace, H5S_SELECT_SET, hs_offset, NULL,
@@ -628,7 +628,7 @@ test_extend(hid_t fapl, const char *base_name, H5D_layout_t layout)
if ((hsize_t)hs_offset[j]>=cur_size[j]) {
odd = 1;
} else {
- odd += hs_offset[j]%2;
+ odd += (int)(hs_offset[j]%2);
}
}