Skip to content

Commit a6f5af9

Browse files
authored
Merge branch 'main' into vk/fe5a-criterion
2 parents 9e76b0e + 8a84249 commit a6f5af9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/lean_prover/src/verify_execution.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ pub fn verify_execution(
7777
let log_n_p16 = log2_ceil_usize(n_poseidons_16);
7878
let log_n_p24 = log2_ceil_usize(n_poseidons_24);
7979

80-
if log_memory > MAX_LOG_MEMORY_SIZE || log_memory < MIN_LOG_MEMORY_SIZE {
80+
if !(MIN_LOG_MEMORY_SIZE..=MAX_LOG_MEMORY_SIZE).contains(&log_memory) {
8181
return Err(ProofError::InvalidProof);
8282
}
8383

0 commit comments

Comments
 (0)