Skip to content

Commit

Permalink
fix load_slice panic in mock prover err display
Browse files Browse the repository at this point in the history
  • Loading branch information
lispc committed Jul 4, 2023
1 parent 9bf3562 commit aab39d5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion halo2_proofs/src/circuit/floor_planner/single_pass.rs
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ impl<'a, F: Field, CS: Assignment<F> + 'a> Layouter<F> for SingleChipLayouter<'a
let log_region_info = row_count >= 40;
if log_region_info {
log::debug!(
"region row_count \"{}\": {}",
"region \"{}\" row_count: {}",
region_name,
shape.row_count()
);
Expand Down
4 changes: 2 additions & 2 deletions halo2_proofs/src/dev/util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ pub(super) fn load_slice<'a, F: FieldExt, T: ColumnType, Q: Into<AnyQuery> + Cop
) -> impl Fn(Q) -> Value<F> + 'a {
move |query| {
let (column, at) = &queries[query.into().index];
let resolved_row = (row + at.0) % n;
let resolved_row = (row + at.0 + n) % n;
cells[column.index()][resolved_row as usize].into()
}
}
Expand All @@ -109,7 +109,7 @@ pub(super) fn load_instance<'a, F: FieldExt, T: ColumnType, Q: Into<AnyQuery> +
) -> impl Fn(Q) -> Value<F> + 'a {
move |query| {
let (column, at) = &queries[query.into().index];
let resolved_row = (row + at.0) % n;
let resolved_row = (row + at.0 + n) % n;
Value::Real(cells[column.index()][resolved_row as usize])
}
}
Expand Down

0 comments on commit aab39d5

Please sign in to comment.