3 ms·
Not sure if it's a bug but found this odity 1 >> 1 == 0 ... 1 >> 31 == 0 1 >> 32 == 1 1 >> 33 == 0 Edit: Oh and on the left shift too 1 << 32 == 1 I th
by n8ta 5y ago
Not sure if it's a bug but found this odity
1 >> 1 == 0
...
1 >> 31 == 0
1 >> 32 == 1
1 >> 33 == 0
Edit:
Oh and on the left shift too
1 << 32 == 1
I think the bit is wrapping around
1 << 64 == 1
1 << (32*300) == 1
Edit2:
What are you looking for help with on the language side? (Todo.md?)