diff options
Diffstat (limited to 'src/common')
-rwxr-xr-x | src/common/endianness.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/common/endianness.c b/src/common/endianness.c index 3aeca00..0304647 100755 --- a/src/common/endianness.c +++ b/src/common/endianness.c @@ -97,6 +97,7 @@ uint16_t swap_u16(const uint16_t *value, SourceEndian endian) default: assert(false); + result = -1; break; } @@ -157,6 +158,7 @@ uint32_t swap_u32(const uint32_t *value, SourceEndian endian) default: assert(false); + result = -1; break; } @@ -221,6 +223,7 @@ uint64_t swap_u64(const uint64_t *value, SourceEndian endian) default: assert(false); + result = -1; break; } |