8038163: Build failure on Mac OS 10.9.2 (Mavericks) due to warning treated as error

Add parentheses to conditional expression to appease compiler.

Reviewed-by: sla, alanb
This commit is contained in:
Pavel Rappo 2014-03-24 14:35:32 -07:00 committed by Brian Burkhalter
parent a25bcf0ac0
commit a9f20cb4c7

View File

@ -288,7 +288,7 @@ static jboolean isVersionGte12x() {
>> 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;
}