Skip to content

Commit

Permalink
wip: try handling relocatables
Browse files Browse the repository at this point in the history
  • Loading branch information
HermanObst committed Sep 3, 2024
1 parent 78b4689 commit 32f6de0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@ impl Cairo1HintProcessor {
) -> Result<(), HintError> {
let lhs_value = res_operand_get_val_maybe(vm, lhs)?;
let rhs_value = res_operand_get_val_maybe(vm, rhs)?;
let result = Felt252::from((lhs_value <= rhs_value) as u8);
let result = if lhs_value <= rhs_value { Felt252::from(1) } else { Felt252::from(0) };

vm.insert_value(cell_ref_to_relocatable(dst, vm)?, result)
.map_err(HintError::from)
Expand Down

0 comments on commit 32f6de0

Please sign in to comment.