mirror of
https://github.com/gcc-mirror/gcc.git
synced 2026-05-06 23:25:24 +02:00
* BigInteger.java: fix right shifts by nonzero multiples of 32.
From-SVN: r44963
This commit is contained in:
@@ -1398,7 +1398,7 @@ public class BigInteger extends Number implements Comparable
|
||||
MPN.rshift0 (words, x.words, word_count, d_len, count);
|
||||
ival = d_len;
|
||||
if (neg)
|
||||
words[d_len-1] |= -1 << (32 - count);
|
||||
words[d_len-1] |= -2 << (31 - count);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user