Something like this?
int x = -1;
long y = x & 0x00000000ffffffffL;
Or am I missing something?
public static long getUnsignedInt(int x) {
return x & 0x00000000ffffffffL;
}
Something like this?
int x = -1;
long y = x & 0x00000000ffffffffL;
Or am I missing something?
public static long getUnsignedInt(int x) {
return x & 0x00000000ffffffffL;
}