We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
this is actually Nim 'shl'/'shr' inconsistency, but it also reflected by stint.
'shl' inconsistency:
1.u256 shl 256
on the other hand shr at runtime and compiletime will will produce 0 if we shift beyond number of bits of the left operand.
shr
probably signed integer version also suffered from this. there is no documentation and tests for this gray area. related Nim PR nim-lang/Nim#11555
The text was updated successfully, but these errors were encountered:
No branches or pull requests
this is actually Nim 'shl'/'shr' inconsistency, but it also reflected by stint.
'shl' inconsistency:
1.u256 shl 256
runtime will produce 01.u256 shl 256
compiletime will produce 1on the other hand
shr
at runtime and compiletime will will produce 0 if we shift beyond number of bits of the left operand.probably signed integer version also suffered from this.
there is no documentation and tests for this gray area.
related Nim PR nim-lang/Nim#11555
The text was updated successfully, but these errors were encountered: