Unverified Commit 8ec25f7a authored by a1lu's avatar a1lu Committed by GitHub
Browse files

Add braces around MAX macro (#77)

The current implementation leads to wrong calculation of output lengths.
parent 1e848805
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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)