diff options
Diffstat (limited to 'src/common/packetsstatic_len.h')
-rw-r--r-- | src/common/packetsstatic_len.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/packetsstatic_len.h b/src/common/packetsstatic_len.h index 8e724cfa8..31a3988e8 100644 --- a/src/common/packetsstatic_len.h +++ b/src/common/packetsstatic_len.h @@ -25,8 +25,8 @@ #endif #define DEFINE_PACKET_HEADER(name, id) \ - STATIC_ASSERT(PACKET_LEN_##id == -1 || sizeof(struct PACKET_##name) == \ - PACKET_LEN_##id, "Wrong size PACKET_"#name); \ + STATIC_ASSERT((int32)(PACKET_LEN_##id) == -1 || sizeof(struct PACKET_##name) == \ + (size_t)PACKET_LEN_##id, "Wrong size PACKET_"#name); \ enum { HEADER_##name = id }; #define packetLen(id, len) PACKET_LEN_##id = (len), |