Open EnderKill98 opened 6 months ago
https://github.com/EnderKill98/RingMessage/blob/84a1625af2d11d0c8874c1fc0c1745aa3cc51320/src/client/java/me/enderkill98/ringmessage/Ring.java#L106
That line basically amounts to hast[3]. Bruh!
hast[3]
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!
https://ideone.com/Uyqh2c
https://github.com/EnderKill98/RingMessage/blob/84a1625af2d11d0c8874c1fc0c1745aa3cc51320/src/client/java/me/enderkill98/ringmessage/Ring.java#L106
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!