diff options
-rw-r--r-- | firmware/export/system.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/export/system.h b/firmware/export/system.h index b0f6eb65a0..f792a132e7 100644 --- a/firmware/export/system.h +++ b/firmware/export/system.h | |||
@@ -235,7 +235,7 @@ static inline unsigned long SWAB32(unsigned long value) | |||
235 | result[ 7.. 0] = value[31..24]; | 235 | result[ 7.. 0] = value[31..24]; |
236 | */ | 236 | */ |
237 | { | 237 | { |
238 | unsigned short hi = SWAB16(value >> 16); | 238 | unsigned long hi = SWAB16(value >> 16); |
239 | unsigned long lo = SWAB16(value & 0xffff); | 239 | unsigned long lo = SWAB16(value & 0xffff); |
240 | return (lo << 16) | hi; | 240 | return (lo << 16) | hi; |
241 | } | 241 | } |