|
return (hash[0] << 3*8) | (hash[1] << 2*8) | (hash[2] << 8) | (hash[3]); |
That line basically amounts to hast[3]. Bruh!
Java is keeping it a byte and not casting to int as i suspected, discarding all shifted bytes and THEN turning it into a int. Rust ftw fr!
RingMessage/src/client/java/me/enderkill98/ringmessage/Ring.java
Line 106 in 84a1625
That line basically amounts to
hast[3]. Bruh!Java is keeping it a byte and not casting to int as i suspected, discarding all shifted bytes and THEN turning it into a int. Rust ftw fr!