mirror of
https://github.com/bitcoinj/bitcoinj.git
synced 2025-02-23 06:35:17 +01:00
ByteUtils: fix integer shift implicitly cast to long problem
This commit is contained in:
parent
8ab62e7149
commit
7db1521b6c
1 changed files with 1 additions and 1 deletions
|
@ -342,7 +342,7 @@ public class ByteUtils {
|
|||
result >>= 8;
|
||||
size++;
|
||||
}
|
||||
result |= size << 24;
|
||||
result |= (long) size << 24;
|
||||
result |= value.signum() == -1 ? 0x00800000 : 0;
|
||||
return result;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue