Skip to content

Commit b27e14b

Browse files
Cast to uint16_t to avoid warnings
1 parent 34120e3 commit b27e14b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/proxy_protocol.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,8 +149,8 @@ typedef struct
149149
#define PP2_SIG "\x0D\x0A\x0D\x0A\x00\x0D\x0A\x51\x55\x49\x54\x0A"
150150

151151
/* 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)
152+
#define sizeof_pp2_tlv_t ((uint16_t) sizeof(pp2_tlv_t) - 1)
153+
#define sizeof_pp2_tlv_aws_t ((uint16_t) sizeof(pp2_tlv_aws_t) - 1)
154154

155155
/****************************************************************/
156156

0 commit comments

Comments
 (0)