summaryrefslogtreecommitdiffstats
path: root/tools/src/h5import
diff options
context:
space:
mode:
Diffstat (limited to 'tools/src/h5import')
-rw-r--r--tools/src/h5import/h5import.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/src/h5import/h5import.c b/tools/src/h5import/h5import.c
index aa17878..2cd826b 100644
--- a/tools/src/h5import/h5import.c
+++ b/tools/src/h5import/h5import.c
@@ -4711,7 +4711,7 @@ uint16_t swap_uint16(uint16_t val)
{
uint16_t ret;
- H5_CHECKED_ASSIGN(ret, uint16_t, (val << 8) | (val >> 8), int);
+ ASSIGN_TO_SMALLER_SIZE(ret, uint16_t, (val << 8) | (val >> 8), int);
return ret;
}
@@ -4719,7 +4719,7 @@ int16_t swap_int16(int16_t val)
{
uint16_t ret;
- H5_CHECKED_ASSIGN(ret, int16_t, (val << 8) | ((val >> 8) & 0xFF), int);
+ ASSIGN_TO_SMALLER_SIZE(ret, int16_t, (val << 8) | ((val >> 8) & 0xFF), int);
return ret;
}