summaryrefslogtreecommitdiffstats
path: root/tools/src
diff options
context:
space:
mode:
Diffstat (limited to 'tools/src')
-rw-r--r--tools/src/h5import/h5import.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/src/h5import/h5import.c b/tools/src/h5import/h5import.c
index f2e264c..bd1689f 100644
--- a/tools/src/h5import/h5import.c
+++ b/tools/src/h5import/h5import.c
@@ -4714,7 +4714,7 @@ uint16_t swap_uint16(uint16_t val)
int16_t swap_int16(int16_t val)
{
- return (uint16_t)((val << 8) | ((val >> 8) & 0xFF));
+ return (int16_t)((val << 8) | ((val >> 8) & 0xFF));
}
uint32_t swap_uint32(uint32_t val)