Incorrect result of shift right operation for value from as_bytes
array
#3635
Labels
bug
Something isn't working
as_bytes
array
#3635
Aim
Convert string to
u8
array and perform right shift>>
on thisu8
value.Expected Behavior
Using String
as_bytes
method should return array ofu8
values.Bug
After
y
is equal to0x61
and is of typeu8
. So expressiony >> 1
should be0x30
but is some large number that looks likeField
To Reproduce
Run
Example code https://github.com/akonior/noir_example/pull/2/files
CI failed logs: https://github.com/akonior/noir_example/actions/runs/7031006112/job/19131738391?pr=2
Installation Method
Binary
Nargo Version
0.19.2
Additional Context
No response
Would you like to submit a PR for this Issue?
Maybe
Support Needs
No response
The text was updated successfully, but these errors were encountered: