-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
math reports negative values as positive when in octal or hex, also mishandles overflow #8417
Comments
I think you have this backwards. |
Current floam@M1 ~> math --base hex -10 Because I just fixed it, no? Am I nuts? |
older versions had the output you are quoting, right? |
Pulling up the last .app bundle, or an old build from last week:
|
Yeah, was testing with the wrong fish. I'll update the issue. |
Oh gotcha, you actually fixed the output to not be naive, rather than not just totally backwards. |
Math can always understand its own output regardless of which
|
Nevermind; it was never working/doing that for octal input, negative or positive. |
On fish master commit 1261b53:
this is because the value is converted to a (presumably 32 bit) int, and then cast to an unsigned int before it is printed.
The text was updated successfully, but these errors were encountered: