diff -r 868ad94dc3ec -r 4e349118658f rt/emul/compact/src/test/java/org/apidesign/bck2brwsr/tck/LongArithmeticTest.java --- a/rt/emul/compact/src/test/java/org/apidesign/bck2brwsr/tck/LongArithmeticTest.java Mon Aug 11 18:19:38 2014 +0200 +++ b/rt/emul/compact/src/test/java/org/apidesign/bck2brwsr/tck/LongArithmeticTest.java Mon Aug 11 20:10:46 2014 +0200 @@ -117,11 +117,13 @@ @Compare public int parameterSlotCount() { long argCounts = 281479271874563L; - return unpack(argCounts, 2); + int x = unpack(argCounts, 2); + return x; } private static char unpack(long packed, int word) { // word==0 => return a, ==3 => return d assert(word <= 3); - return (char)(packed >> ((3-word) * 16)); + final long val = packed >> ((3-word) * 16); + return (char)val; } @Compare public long conversion() { return Long.MAX_VALUE;