1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-09 00:00:04 +01:00

fix missing parenthesis protection

This commit is contained in:
Stepan Vondrak 2015-10-15 21:05:54 +08:00 committed by Andy Green
parent e46f4125ef
commit fc6c274596

View file

@ -1233,7 +1233,7 @@ libwebsocket_set_timeout(struct libwebsocket *wsi,
#else
#define _LWS_PAD_SIZE sizeof(void *) // The pointer size on any unknown arch.
#endif
#define _LWS_PAD(n) (((n) % _LWS_PAD_SIZE) ? (n + (_LWS_PAD_SIZE - (n % _LWS_PAD_SIZE))) : (n))
#define _LWS_PAD(n) (((n) % _LWS_PAD_SIZE) ? ((n) + (_LWS_PAD_SIZE - ((n) % _LWS_PAD_SIZE))) : (n))
#define LWS_SEND_BUFFER_PRE_PADDING _LWS_PAD(4 + 10 + (2 * MAX_MUX_RECURSION))
#define LWS_SEND_BUFFER_POST_PADDING 4