From 172734fc0a75b6f00f7ef8ecabfda32d5c341187 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 16 Nov 2018 00:24:59 +0300 Subject: Fix some visual studio warnings. --- src/common/packetsstatic_len.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/common/packetsstatic_len.h') 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), -- cgit v1.2.3-70-g09d2