diff options
Diffstat (limited to 'test/gen_cross.c')
-rw-r--r-- | test/gen_cross.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/gen_cross.c b/test/gen_cross.c index 816064d..d7c424a 100644 --- a/test/gen_cross.c +++ b/test/gen_cross.c @@ -401,7 +401,7 @@ create_scale_offset_dsets_char(hid_t fid, hid_t fsid, hid_t msid) */ for (j = 0; j < NX; j++) { for (i = 0; i < NY; i++) - data[j][i] = i + j; + data[j][i] = (char)(i + j); } /* * 0 1 2 3 4 5 @@ -500,7 +500,7 @@ create_scale_offset_dsets_short(hid_t fid, hid_t fsid, hid_t msid) */ for (j = 0; j < NX; j++) { for (i = 0; i < NY; i++) - data[j][i] = i + j; + data[j][i] = (short)(i + j); } /* * 0 1 2 3 4 5 |