Add braces around MAX macro

The current implementation leads to wrong calculation of output lengths.
pull/77/head
a1lu 3 years ago committed by GitHub
parent 1e84880535
commit 99d578ae5d
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