We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5501b94 commit 37f6641Copy full SHA for 37f6641
1 file changed
prover/src/lib.rs
@@ -674,7 +674,7 @@ pub fn verify_with_options(
674
use crate::tables::page::DEFAULT_PAGE_SIZE;
675
use executor::vm::memory::MAX_PRIVATE_INPUT_SIZE;
676
let max_pages =
677
- (MAX_PRIVATE_INPUT_SIZE as usize + 4 + DEFAULT_PAGE_SIZE - 1) / DEFAULT_PAGE_SIZE + 1;
+ (MAX_PRIVATE_INPUT_SIZE as usize + 4).div_ceil(DEFAULT_PAGE_SIZE) + 1;
678
if vm_proof.num_private_input_pages > max_pages {
679
return Err(Error::InvalidTableCounts(format!(
680
"num_private_input_pages ({}) exceeds max ({max_pages})",
0 commit comments