Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
Oppen committed May 3, 2023
1 parent 7646f40 commit eba668e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/vm/runners/builtin_runner/range_check.rs
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ impl RangeCheckBuiltinRunner {
let range_check_segment = memory.data.get(self.base)?;
let inner_rc_bound = Felt252::new(self.inner_rc_bound);
for value in range_check_segment {
//Split val into n_parts parts.
let mut val = value.as_ref()?.get_value().get_int_ref()?.clone();
for _ in 0..self.n_parts {
let part_val = val.mod_floor(&inner_rc_bound).to_usize()?;
Expand Down

0 comments on commit eba668e

Please sign in to comment.