From fbac879a4432b990d258ae972c3992ed05f5b9f6 Mon Sep 17 00:00:00 2001 From: marc_culler Date: Tue, 20 Sep 2022 18:11:23 +0000 Subject: Apply patch [313f102dbc] (parenthesize macro parameters) from Christopher Chavez. --- macosx/ttkMacOSXTheme.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/macosx/ttkMacOSXTheme.c b/macosx/ttkMacOSXTheme.c index 38e6fa3..f2ad636 100644 --- a/macosx/ttkMacOSXTheme.c +++ b/macosx/ttkMacOSXTheme.c @@ -131,9 +131,9 @@ static CGFloat pressedPushButtonGradient[8] = { */ #if MAC_OS_X_VERSION_MAX_ALLOWED >= 1080 -#define CGCOLOR(nscolor) nscolor.CGColor +#define CGCOLOR(nscolor) (nscolor).CGColor #else -#define CGCOLOR(nscolor) (0 ? (CGColorRef) nscolor : NULL) +#define CGCOLOR(nscolor) (0 ? (CGColorRef) (nscolor) : NULL) #define CGPathCreateWithRoundedRect(w, x, y, z) NULL #endif @@ -146,7 +146,7 @@ static CGFloat pressedPushButtonGradient[8] = { */ #define CHECK_RADIUS(radius, bounds) \ - if (radius > bounds.size.width / 2 || radius > bounds.size.height / 2) { \ + if ((radius) > (bounds).size.width / 2 || (radius) > (bounds).size.height / 2) { \ return; \ } -- cgit v0.12