Skip to content

Commit

Permalink
fix: sar (#994)
Browse files Browse the repository at this point in the history
  • Loading branch information
enitrat authored Sep 30, 2024
1 parent 8b29b2f commit 77bfa66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/evm/src/instructions/comparison_operations.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ pub impl ComparisonAndBitwiseOperations of ComparisonAndBitwiseOperationsTrait {
Bounded::<u256>::MAX
};

if (shift > 256) {
if (shift >= 256) {
self.stack.push(sign)
} else {
// XORing with sign before and after the shift propagates the sign bit of the operation
Expand Down

0 comments on commit 77bfa66

Please sign in to comment.