Skip to content

Commit e9d5de5

Browse files
authored
Adding parenthesis to macro definition prevents erroneous calculation. (#81)
This fixes #79.
1 parent 5c27869 commit e9d5de5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/BearSSLClient.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,11 @@
3838
#else
3939

4040
#ifndef BEAR_SSL_CLIENT_OBUF_SIZE
41-
#define BEAR_SSL_CLIENT_OBUF_SIZE 512 + 85
41+
#define BEAR_SSL_CLIENT_OBUF_SIZE (512 + 85)
4242
#endif
4343

4444
#ifndef BEAR_SSL_CLIENT_IBUF_SIZE
45-
#define BEAR_SSL_CLIENT_IBUF_SIZE 8192 + 85 + 325 - BEAR_SSL_CLIENT_OBUF_SIZE
45+
#define BEAR_SSL_CLIENT_IBUF_SIZE (8192 + 85 + 325 - BEAR_SSL_CLIENT_OBUF_SIZE)
4646
#endif
4747

4848
#endif

0 commit comments

Comments
 (0)