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) result[ 7.. 0] = value[31..24]; */ { - unsigned short hi = SWAB16(value >> 16); + unsigned long hi = SWAB16(value >> 16); unsigned long lo = SWAB16(value & 0xffff); return (lo << 16) | hi; }