Add braces around MAX macro (#77)

The current implementation leads to wrong calculation of output lengths.
pull/80/head
a1lu 3 years ago committed by GitHub
parent 1e84880535
commit 8ec25f7a9e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -35,7 +35,7 @@
#endif
#include <Python.h>
#define MAX(A,B) (A) < (B) ? (B) : (A)
#define MAX(A,B) ((A) < (B) ? (B) : (A))
#define CAT1(A,B) A##B
#define CAT(A,B) CAT1(A,B)

Loading…
Cancel
Save