8160693: ScriptRunData.java uses bitwise AND instead of logical AND
authorprr
Fri, 01 Jul 2016 14:27:13 -0700
changeset 39548 ad363c42f790
parent 39547 eb5378f22bca
child 39549 26cd79781f7a
8160693: ScriptRunData.java uses bitwise AND instead of logical AND Reviewed-by: flar
jdk/src/java.desktop/share/classes/sun/font/ScriptRunData.java
--- a/jdk/src/java.desktop/share/classes/sun/font/ScriptRunData.java	Fri Jul 01 13:00:53 2016 -0700
+++ b/jdk/src/java.desktop/share/classes/sun/font/ScriptRunData.java	Fri Jul 01 14:27:13 2016 -0700
@@ -44,7 +44,7 @@
         if (cp >= data[cache] && cp < data[cache+2]) {
             return data[cache+1];
         }
-        if (cp >= CHAR_START & cp < CHAR_LIMIT) {
+        if ((cp >= CHAR_START) && (cp < CHAR_LIMIT)) {
             int probe = dataPower;
             int index = 0;