summaryrefslogtreecommitdiffstats
path: root/tools/test/h5repack
diff options
context:
space:
mode:
authorkmu <kmu@hdfgroup.org>2019-12-11 16:44:56 (GMT)
committerkmu <kmu@hdfgroup.org>2019-12-11 16:44:56 (GMT)
commit45a62b2d46523c15a7d2bc7f52db2b756b40df26 (patch)
tree9be754803238d1c98cde34ca9d23b3b6e3e7651b /tools/test/h5repack
parenta00d71b2e26c06a299ac92552b7887ca017fd4d3 (diff)
downloadhdf5-45a62b2d46523c15a7d2bc7f52db2b756b40df26.zip
hdf5-45a62b2d46523c15a7d2bc7f52db2b756b40df26.tar.gz
hdf5-45a62b2d46523c15a7d2bc7f52db2b756b40df26.tar.bz2
fix and address comments
Diffstat (limited to 'tools/test/h5repack')
-rw-r--r--tools/test/h5repack/h5repackgentest.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/test/h5repack/h5repackgentest.c b/tools/test/h5repack/h5repackgentest.c
index c2398b6..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++) {
- H5_CHECKED_ASSIGN(wdata[n], uint8_t, n * ((n & 1) ? (-1) : (1)), int);
+ wdata[n] = (uint8_t)((n & 1) ? -n : n);
}
}
}