You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
error: The bit count in a bit-shift operation must fit in a u8, try casting the right hand side into a u8 first
┌─ src/utils/u60_representation.nr:198:46
│
198 │ result.limbs.set(num_shifted_limbs, (value << limb_shift) & mask);
│ -------------------
│
error: The bit count in a bit-shift operation must fit in a u8, try casting the right hand side into a u8 first
┌─ src/utils/u60_representation.nr:204:29
│
204 │ let upshift = ((value << limb_shift) + remainder) & mask;
│ -------------------
│
But limb_shift is a u8 defined as let limb_shift = (shift % 60) as u8;
To Reproduce
Workaround
Yes
Workaround Description
Manually cast to u8 in the callsite
Additional Context
No response
Project Impact
None
Blocker Context
No response
Nargo Version
No response
NoirJS Version
No response
Proving Backend Tooling & Version
No response
Would you like to submit a PR for this Issue?
None
Support Needs
No response
The text was updated successfully, but these errors were encountered:
# Description
## Problem\*
Resolves#5823
## Summary\*
We check `rhs` differently than `lhs` in left and right bit shifts in a
series of hacky checks.
In the case of type variables, `lhs` and `rhs` may be swapped causing
the unification to be placed on lhs instead of rhs. I've reordered the
cases to prevent this.
## Additional Context
## Documentation\*
Check one:
- [x] No documentation needed.
- [ ] Documentation included in this PR.
- [ ] **[For Experimental Features]** Documentation to be submitted in a
separate PR.
# PR Checklist\*
- [x] I have tested the changes locally.
- [x] I have formatted the changes with [Prettier](https://prettier.io/)
and/or `cargo fmt` on default settings.
Aim
Compile https://github.com/noir-lang/noir-bignum with latest noir
Expected Behavior
It should compile
Bug
But limb_shift is a u8 defined as
let limb_shift = (shift % 60) as u8;
To Reproduce
Workaround
Yes
Workaround Description
Manually cast to u8 in the callsite
Additional Context
No response
Project Impact
None
Blocker Context
No response
Nargo Version
No response
NoirJS Version
No response
Proving Backend Tooling & Version
No response
Would you like to submit a PR for this Issue?
None
Support Needs
No response
The text was updated successfully, but these errors were encountered: