changeset 23574:089eeff81e86

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>
author bpb
date Mon, 24 Mar 2014 14:35:32 -0700
parents f42dcef4fb7f
children 6fd9136dc579
files jdk/src/share/back/eventFilter.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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;
     }