8038163: Build failure on Mac OS 10.9.2 (Mavericks) due to warning treated as error
authorbpb
Mon, 24 Mar 2014 14:35:32 -0700
changeset 23574 089eeff81e86
parent 23573 f42dcef4fb7f
child 23575 6fd9136dc579
8038163: Build failure on Mac OS 10.9.2 (Mavericks) due to warning treated as error Summary: Add parentheses to conditional expression to appease compiler. Reviewed-by: sla, alanb Contributed-by: Pavel Rappo <pavel.rappo@oracle.com>
jdk/src/share/back/eventFilter.c
--- a/jdk/src/share/back/eventFilter.c	Mon Mar 24 12:47:02 2014 -0700
+++ b/jdk/src/share/back/eventFilter.c	Mon Mar 24 14:35:32 2014 -0700
@@ -288,7 +288,7 @@
                     >> JVMTI_VERSION_SHIFT_MAJOR;
         minor = (version & JVMTI_VERSION_MASK_MINOR)
                     >> JVMTI_VERSION_SHIFT_MINOR;
-        return (major > 1 || major == 1 && minor >= 2);
+        return (major > 1 || (major == 1 && minor >= 2)) ? JNI_TRUE : JNI_FALSE;
     } else {
         return JNI_FALSE;
     }