changeset 39548:ad363c42f790

8160693: ScriptRunData.java uses bitwise AND instead of logical AND Reviewed-by: flar
author prr
date Fri, 01 Jul 2016 14:27:13 -0700
parents eb5378f22bca
children 26cd79781f7a
files jdk/src/java.desktop/share/classes/sun/font/ScriptRunData.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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;