diff options
author | Kimmy Mu <kmu@hdfgroup.org> | 2020-01-24 01:42:50 (GMT) |
---|---|---|
committer | Kimmy Mu <kmu@hdfgroup.org> | 2020-01-24 01:42:50 (GMT) |
commit | d038d8510032696e4defd86f1906e7d4fa133ba9 (patch) | |
tree | a77fdb4be46d9c9c8d4d592088583e490abc561c /tools/test/h5repack | |
parent | 037a883bd4d58061e11183b1d67d7f0cc17ddd99 (diff) | |
parent | 48cc850199901c5b67a40183262f4ead975b884f (diff) | |
download | hdf5-d038d8510032696e4defd86f1906e7d4fa133ba9.zip hdf5-d038d8510032696e4defd86f1906e7d4fa133ba9.tar.gz hdf5-d038d8510032696e4defd86f1906e7d4fa133ba9.tar.bz2 |
Merge pull request #2238 in HDFFV/hdf5 from ~KMU/hdf5:hdf5_1_12 to hdf5_1_12
* commit '48cc850199901c5b67a40183262f4ead975b884f':
fix test assert fail error
Merge pull request #2071 in HDFFV/hdf5 from ~KMU/hdf5:bugfix/intel_warnings to develop
Merge pull request #2234 in HDFFV/hdf5 from ~KMU/hdf5:bugfix/intel_warnings to develop
Diffstat (limited to 'tools/test/h5repack')
-rw-r--r-- | tools/test/h5repack/h5repackgentest.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/test/h5repack/h5repackgentest.c b/tools/test/h5repack/h5repackgentest.c index aaac285..77fb28a 100644 --- a/tools/test/h5repack/h5repackgentest.c +++ b/tools/test/h5repack/h5repackgentest.c @@ -266,7 +266,7 @@ generate_uint8be(hbool_t external) { for (i = 0, n = 0; i < dims[0]; i++) { for (j = 0; j < dims[1]; j++) { for (k = 0; k < dims[2]; k++, n++) { - wdata[n] = n * ((n & 1) ? (-1) : (1)); + wdata[n] = (uint8_t)((n & 1) ? -n : n); } } } @@ -296,7 +296,7 @@ generate_f32le(hbool_t external) { /* Generate values */ for (i = 0, k = 0, n = 0; i < dims[0]; i++) { for (j = 0; j < dims[1]; j++, k++, n++) { - wdata[k] = n * 801.1 * ((k % 5 == 1) ? (-1) : (1)); + wdata[k] = (float)(n * 801.1 * ((k % 5 == 1) ? (-1) : (1))); } } |