8157476: -Wlogical-not-parentheses warnings in JRSUIConstantSync.m
authordlsmith
Wed, 08 Jun 2016 16:27:02 -0600
changeset 39509 f89a933b7f45
parent 39036 b18e54dcaf69
child 39510 b61e0e7ee904
8157476: -Wlogical-not-parentheses warnings in JRSUIConstantSync.m Reviewed-by: serb
jdk/src/java.desktop/macosx/native/libosxui/JRSUIConstantSync.m
--- a/jdk/src/java.desktop/macosx/native/libosxui/JRSUIConstantSync.m	Wed Jun 08 09:56:56 2016 +0530
+++ b/jdk/src/java.desktop/macosx/native/libosxui/JRSUIConstantSync.m	Wed Jun 08 16:27:02 2016 -0600
@@ -90,7 +90,7 @@
     apple_laf_JRSUIConstants_ ## clazz ## __ ## constant
 
 #define CONSTANT_CHECK(clazz, constant)                                \
-    JRS_CONSTANT(clazz, constant) == JNI_CONSTANT(clazz, constant)
+    ( JRS_CONSTANT(clazz, constant) == JNI_CONSTANT(clazz, constant) )
 
 #define CONSISTENCY_CHECK(clazz, constant)                            \
     if ( !CONSTANT_CHECK(clazz, constant) ) return NO;