We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 34120e3 commit b27e14bCopy full SHA for b27e14b
1 file changed
src/proxy_protocol.c
@@ -149,8 +149,8 @@ typedef struct
149
#define PP2_SIG "\x0D\x0A\x0D\x0A\x00\x0D\x0A\x51\x55\x49\x54\x0A"
150
151
/* ANSI C makes us suffer as we cannot have value[0] */
152
-#define sizeof_pp2_tlv_t (sizeof(pp2_tlv_t) - 1)
153
-#define sizeof_pp2_tlv_aws_t (sizeof(pp2_tlv_aws_t) - 1)
+#define sizeof_pp2_tlv_t ((uint16_t) sizeof(pp2_tlv_t) - 1)
+#define sizeof_pp2_tlv_aws_t ((uint16_t) sizeof(pp2_tlv_aws_t) - 1)
154
155
/****************************************************************/
156
0 commit comments