Skip to content

Commit 863f321

Browse files
committed
fix wrong assert
1 parent 9ed7929 commit 863f321

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

prover/src/prover_stages/cached_data.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,7 @@ impl ProverCachedData {
364364
let circuit_sequence_bits_shift = (trace_len.trailing_zeros()
365365
+ num_bits_in_timestamp_for_index_log_2)
366366
- TIMESTAMP_COLUMNS_NUM_BITS;
367-
assert!((circuit_sequence << circuit_sequence_bits_shift) <= u16::MAX as usize);
367+
assert!((circuit_sequence << circuit_sequence_bits_shift) < (1 << TIMESTAMP_COLUMNS_NUM_BITS));
368368

369369
let memory_timestamp_high_from_circuit_idx =
370370
Mersenne31Field::from_u64_with_reduction(

0 commit comments

Comments
 (0)