Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wrong output on overflow #26

Closed
kilobyte opened this issue Jul 19, 2019 · 2 comments
Closed

wrong output on overflow #26

kilobyte opened this issue Jul 19, 2019 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@kilobyte
Copy link

In the interactive mode, if the input value doesn't fit in chosen word length, instead of returning an error or truncating, bitwise displays a bogus value.

For example, on the first try, I did not notice the 32-bit limitation and typed in 4294967296. I'd expect one of:

  • 0
  • "error" or "overflow"
  • extending the field

yet I got:

hex 19999999
oct 3146314631
bin 0 0 0 1 1 0 0 1 | 1 0 0 1 1 0 0 1 | 1 0 0 1 1 0 0 1 | 1 0 0 1 1 0 0 1
@mellowcandle
Copy link
Owner

thanks. I'll try to recreate. on which version are you running?

@mellowcandle mellowcandle added the bug Something isn't working label Jul 19, 2019
@mellowcandle mellowcandle self-assigned this Jul 19, 2019
@kilobyte
Copy link
Author

v0.32, exact tag (without four later commits, which seem irrelevant). Debian amd64.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants