src/solaris/classes/sun/java2d/xr/XRUtils.java

Print this page

        

@@ -253,9 +253,9 @@
         return (short) (x > Short.MAX_VALUE
                            ? Short.MAX_VALUE
                            : (x < Short.MIN_VALUE ? Short.MIN_VALUE : x));
     }
 
-    public static short clampToUShort(int x) {
-        return (short) (x > 65535 ? 65535 : (x < 0) ? 0 : x);
+    public static int clampToUShort(int x) {
+        return (x > 65535 ? 65535 : (x < 0) ? 0 : x);
     }
 }