rt/emul/compact/src/test/java/org/apidesign/bck2brwsr/tck/LongArithmeticTest.java
branchjdk8
changeset 1666 4e349118658f
parent 1665 868ad94dc3ec
parent 1663 03f1dd008e83
     1.1 --- a/rt/emul/compact/src/test/java/org/apidesign/bck2brwsr/tck/LongArithmeticTest.java	Mon Aug 11 18:19:38 2014 +0200
     1.2 +++ b/rt/emul/compact/src/test/java/org/apidesign/bck2brwsr/tck/LongArithmeticTest.java	Mon Aug 11 20:10:46 2014 +0200
     1.3 @@ -117,11 +117,13 @@
     1.4      
     1.5      @Compare public int parameterSlotCount() {
     1.6          long argCounts = 281479271874563L;
     1.7 -        return unpack(argCounts, 2);
     1.8 +        int x = unpack(argCounts, 2);
     1.9 +        return x;
    1.10      }
    1.11      private static char unpack(long packed, int word) { // word==0 => return a, ==3 => return d
    1.12          assert(word <= 3);
    1.13 -        return (char)(packed >> ((3-word) * 16));
    1.14 +        final long val = packed >> ((3-word) * 16);
    1.15 +        return (char)val;
    1.16      }
    1.17      @Compare public long conversion() {
    1.18          return Long.MAX_VALUE;