diff --git a/packet.h b/packet.h index dd18461..9061dad 100644 --- a/packet.h +++ b/packet.h @@ -9,7 +9,7 @@ #include <stdbool.h> /* Maximum size of a single packet stored in pool, including headers */ -#define PACKET_MAX_LEN UINT16_MAX +#define PACKET_MAX_LEN ((size_t)UINT16_MAX) /** * struct pool - Generic pool of packets stored in a buffer