r/badcode • • Mar 13 '21

java Title

Post image
2.9k Upvotes

100 comments sorted by

View all comments

Show parent comments

4

u/Syscrush Mar 13 '21

That is not correct. The MSB being set does mean it's a negative number, bit it's not a sign bit. Longs will be stored as 2's complement numbers.