-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
.uint8
: error at compile-time , no error at execution-time
#23132
Comments
ringabout
added a commit
that referenced
this issue
Aug 8, 2024
This was referenced Aug 13, 2024
narimiran
pushed a commit
that referenced
this issue
Sep 13, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
this runs fine
and shows the value of the lowest byte : 3
but the same code at compile-time
breaks with
Error: illegal conversion from '72057594037927683' to '[0..255]'
in the line
Expected Output
to be the same as at execution-time :
3 , the value of the lowest byte
Possible Solution
in the nimvm implementation adding
before the conversion
to extract the lowest byte and have it in range [0..255] ,
identical to the behaviour at execution-time .
Nim Version
nim -v
Additional Information
compiled with the cmdLine
nim compile test.nim
on the gcc version :
winlibs-x86_64-posix-seh-gcc-13.2.0-mingw-w64ucrt-11.0.1-r3
The text was updated successfully, but these errors were encountered: