be more explicit about size requirement

master
leitner 2 years ago
parent 444c36f3e8
commit 5b6e6a0671

@ -32,11 +32,11 @@ static inline void uint16_pack_big(char* out,uint16 in) {
*(uint16*)out=__builtin_bswap16(in); *(uint16*)out=__builtin_bswap16(in);
} }
static inline void uint16_unpack_big(const char *in,uint16* out) { static inline void uint16_unpack_big(const char in[2],uint16* out) {
*out=__builtin_bswap16(*(const uint16*)in); *out=__builtin_bswap16(*(const uint16*)in);
} }
static inline uint16 uint16_read_big(const char* in) { static inline uint16 uint16_read_big(const char in[2]) {
return __builtin_bswap16(*(const uint16*)in); return __builtin_bswap16(*(const uint16*)in);
} }

Loading…
Cancel
Save