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

-128'i8 gives: Error: number out of range: '128'i8' #125

Closed
timotheecour opened this issue Apr 26, 2020 · 1 comment
Closed

-128'i8 gives: Error: number out of range: '128'i8' #125

timotheecour opened this issue Apr 26, 2020 · 1 comment

Comments

@timotheecour
Copy link
Owner

timotheecour commented Apr 26, 2020

-128'i8 gives: Error: number out of range: '128'i8'

Likewise with T.low for all signed T

Example

let a1 = (-128).int8
let a2 = -127'i8
let a3 = -128'i8 # Error: number out of range: '128'i8'

Current Output

Error: number out of range: '128'i8'

Expected Output

works

Possible Solution

Additional Information

@timotheecour
Copy link
Owner Author

echo "echo -128'i8" | $nim_144_X c -r -
fails

nim --eval:"echo -128'i8"
-128

works

as of 1.5.1 355985a

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant