diff --git a/pkg/lambdaworks/lib/lambdaworks/src/lib.rs b/pkg/lambdaworks/lib/lambdaworks/src/lib.rs index 97c98c6e..b772d13d 100644 --- a/pkg/lambdaworks/lib/lambdaworks/src/lib.rs +++ b/pkg/lambdaworks/lib/lambdaworks/src/lib.rs @@ -257,7 +257,7 @@ pub unsafe extern "C" fn free_string(ptr: *mut c_char) { pub extern "C" fn felt_shr(a: Limbs, b: usize, result: Limbs) { let felt_a = limbs_to_felt(a).representative(); - let res = felt_a << b; + let res = felt_a >> b; felt_to_limbs(Felt::from(&res), result) }