mirror of
https://github.com/corda/corda.git
synced 2025-01-06 05:04:20 +00:00
fix Integer.toHexString to treat its argument as unsigned
This commit is contained in:
parent
6ed28a13c3
commit
be5600d79d
@ -45,7 +45,7 @@ public final class Integer extends Number implements Comparable<Integer> {
|
||||
}
|
||||
|
||||
public static String toHexString(int v) {
|
||||
return toString(v, 16);
|
||||
return Long.toString(((long) v) & 0xFFFFFFFFL, 16);
|
||||
}
|
||||
|
||||
public byte byteValue() {
|
||||
|
Loading…
Reference in New Issue
Block a user