Skip to content

Commit 37f6641

Browse files
committed
fmt
1 parent 5501b94 commit 37f6641

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

prover/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -674,7 +674,7 @@ pub fn verify_with_options(
674674
use crate::tables::page::DEFAULT_PAGE_SIZE;
675675
use executor::vm::memory::MAX_PRIVATE_INPUT_SIZE;
676676
let max_pages =
677-
(MAX_PRIVATE_INPUT_SIZE as usize + 4 + DEFAULT_PAGE_SIZE - 1) / DEFAULT_PAGE_SIZE + 1;
677+
(MAX_PRIVATE_INPUT_SIZE as usize + 4).div_ceil(DEFAULT_PAGE_SIZE) + 1;
678678
if vm_proof.num_private_input_pages > max_pages {
679679
return Err(Error::InvalidTableCounts(format!(
680680
"num_private_input_pages ({}) exceeds max ({max_pages})",

0 commit comments

Comments
 (0)