Skip to content

Commit 6c29ed7

Browse files
committed
Use checked_next_power_of_two for commit_count
1 parent dbf075c commit 6c29ed7

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

prover/src/tables/trace_builder.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2313,7 +2313,10 @@ pub fn count_table_lengths(
23132313
mul_padded_rows: padded_chunked_rows(mul_count, max_rows.mul),
23142314
dvrm_padded_rows: padded_chunked_rows(dvrm_count, max_rows.dvrm),
23152315
branch_padded_rows: padded_chunked_rows(branch_count, max_rows.branch),
2316-
commit_padded_rows: commit_count.next_power_of_two().max(4) as u64,
2316+
commit_padded_rows: commit_count
2317+
.checked_next_power_of_two()
2318+
.unwrap_or(usize::MAX)
2319+
.max(4) as u64,
23172320
decode_rows,
23182321
unique_page_count,
23192322
cycle_count,

0 commit comments

Comments
 (0)