changeset 1796:80b5d7e96fdb

RT-25370: upper four bits represent an index. When getting the index value, need to shift unsigned
author David Grieve<david.grieve@oracle.com>
date Fri, 05 Oct 2012 14:24:37 -0400
parents bedd78e543a0
children fe99329cd02e 969bc24c7dc8
files javafx-ui-common/src/com/sun/javafx/css/SimpleSelector.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/javafx-ui-common/src/com/sun/javafx/css/SimpleSelector.java	Thu Oct 04 17:06:53 2012 -0400
+++ b/javafx-ui-common/src/com/sun/javafx/css/SimpleSelector.java	Fri Oct 05 14:24:37 2012 -0400
@@ -101,7 +101,7 @@
             final String styleClass = styleClasses.get(n);
             final long m = getStyleClassMask(styleClass);
             final long element = (m & ~VALUE_MASK);
-            final int  index = (int)(element >> VALUE_BITS);
+            final int  index = (int)(element >>> VALUE_BITS);
             // need to grow?
             if (index >= mask.length) {
                 final long[] temp = new long[index+1];