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>
--- 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;
}