bitwise
bitwise copied to clipboard
Bitwidth not enforced, oveflow is a bit awkward
Describe the bug Overflow not handled elegantly
To Reproduce Steps to reproduce the behavior:
- Set width to a low amount eg:
:width 8 - Add two numbers that total higher than the max value for that width eg:
0xff + 1
Expected behavior Overflow should probably be truncated, to resemble the behavior in most programming languages and provide a warning
Screenshots

Version:
- 0.43
Desktop (please complete the following information):
- OS: Arch Linux
Underflow is even worse
You're correct. I will fix it. Thanks for reporting.
In the original report I said truncated which is probably wrong. It'd be more useful if it actually overflowed, so on width 8 just % 0xFF etc.