Skip to content
This repository has been archived by the owner on Jan 9, 2025. It is now read-only.

Commit

Permalink
fix: follow Pr comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Eikix committed Nov 14, 2023
1 parent e75ed0e commit d8be7ee
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/kakarot/instructions/stop_and_math_operations.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -264,9 +264,6 @@ namespace StopAndMathOperations {
let range_check_ptr = [ap - 2];
let bitwise_ptr = cast([fp - 4], BitwiseBuiltin*);
let popped = cast([ap - 1], Uint256*);
// We reassign `bitwise_ptr` to avoid `Reference 'bitwise_ptr' was revoked`
tempvar bitwise_pointer = bitwise_ptr;
tempvar range_check_pointer = range_check_ptr;

// The size in bytes of the value to be extended.
let b = popped[0];
Expand Down Expand Up @@ -304,8 +301,8 @@ namespace StopAndMathOperations {
}
}

tempvar bitwise_ptr = cast(bitwise_pointer, BitwiseBuiltin*);
tempvar range_check_ptr = range_check_pointer;
tempvar bitwise_ptr = bitwise_ptr;
tempvar range_check_ptr = range_check_ptr;
tempvar result = Uint256(res_low, res_high);
jmp end;

Expand Down

0 comments on commit d8be7ee

Please sign in to comment.