changeset 11872:0844fa517c35

8160693: ScriptRunData.java uses bitwise AND instead of logical AND Reviewed-by: flar
author prr
date Tue, 05 Jul 2016 11:03:13 -0700
parents 67aec740dd5e
children 527e4315918a
files src/share/classes/sun/font/ScriptRunData.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/classes/sun/font/ScriptRunData.java	Tue Jul 05 20:44:22 2016 +0300
+++ b/src/share/classes/sun/font/ScriptRunData.java	Tue Jul 05 11:03: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;