Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix poly degree 0 underflow #10
fix poly degree 0 underflow #10
Changes from 2 commits
d3412e0
69aa268
f94bbb0
a516540
5626cd7
ec2ddcb
6172245
43d1379
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
Check warning on line 26 in halo2_proofs/benches/fft.rs
GitHub Actions / Clippy (beta)
casting to the same type is unnecessary (`u32` -> `u32`)
Check failure on line 213 in halo2_proofs/src/arithmetic.rs
GitHub Actions / Clippy (1.56.1)
the borrowed expression implements the required traits
Check warning on line 213 in halo2_proofs/src/arithmetic.rs
GitHub Actions / Clippy (beta)
the borrowed expression implements the required traits
Check warning on line 213 in halo2_proofs/src/arithmetic.rs
GitHub Actions / Clippy (beta)
the borrowed expression implements the required traits
Check failure on line 262 in halo2_proofs/src/arithmetic.rs
GitHub Actions / Clippy (1.56.1)
the borrowed expression implements the required traits
Check warning on line 262 in halo2_proofs/src/arithmetic.rs
GitHub Actions / Clippy (beta)
the borrowed expression implements the required traits
Check warning on line 262 in halo2_proofs/src/arithmetic.rs
GitHub Actions / Clippy (beta)
the borrowed expression implements the required traits
Check failure on line 313 in halo2_proofs/src/arithmetic.rs
GitHub Actions / Clippy (1.56.1)
casting to the same type is unnecessary (`usize` -> `usize`)
Check warning on line 313 in halo2_proofs/src/arithmetic.rs
GitHub Actions / Clippy (beta)
casting to the same type is unnecessary (`usize` -> `usize`)
Check warning on line 313 in halo2_proofs/src/arithmetic.rs
GitHub Actions / Clippy (beta)
casting to the same type is unnecessary (`usize` -> `usize`)
Check warning on line 263 in halo2_proofs/src/fft.rs
GitHub Actions / Clippy (beta)
casting to the same type is unnecessary (`u32` -> `u32`)
Check failure on line 24 in halo2_proofs/src/fft/parallel.rs
GitHub Actions / Clippy (1.56.1)
casting to the same type is unnecessary (`usize` -> `usize`)
Check warning on line 24 in halo2_proofs/src/fft/parallel.rs
GitHub Actions / Clippy (beta)
casting to the same type is unnecessary (`usize` -> `usize`)
Check warning on line 24 in halo2_proofs/src/fft/parallel.rs
GitHub Actions / Clippy (beta)
casting to the same type is unnecessary (`usize` -> `usize`)
Check failure on line 42 in halo2_proofs/src/fft/parallel.rs
GitHub Actions / Clippy (1.56.1)
casting to the same type is unnecessary (`usize` -> `usize`)
Check failure on line 42 in halo2_proofs/src/fft/parallel.rs
GitHub Actions / Clippy (1.56.1)
casting to the same type is unnecessary (`usize` -> `usize`)
Check warning on line 42 in halo2_proofs/src/fft/parallel.rs
GitHub Actions / Clippy (beta)
casting to the same type is unnecessary (`usize` -> `usize`)
Check warning on line 42 in halo2_proofs/src/fft/parallel.rs
GitHub Actions / Clippy (beta)
casting to the same type is unnecessary (`usize` -> `usize`)
Check warning on line 42 in halo2_proofs/src/fft/parallel.rs
GitHub Actions / Clippy (beta)
casting to the same type is unnecessary (`usize` -> `usize`)
Check warning on line 42 in halo2_proofs/src/fft/parallel.rs
GitHub Actions / Clippy (beta)
casting to the same type is unnecessary (`usize` -> `usize`)
Check failure on line 48 in halo2_proofs/src/fft/parallel.rs
GitHub Actions / Clippy (1.56.1)
the borrowed expression implements the required traits
Check warning on line 48 in halo2_proofs/src/fft/parallel.rs
GitHub Actions / Clippy (beta)
the borrowed expression implements the required traits
Check warning on line 48 in halo2_proofs/src/fft/parallel.rs
GitHub Actions / Clippy (beta)
the borrowed expression implements the required traits
Check failure on line 128 in halo2_proofs/src/fft/parallel.rs
GitHub Actions / Clippy (1.56.1)
casting to the same type is unnecessary (`usize` -> `usize`)
Check warning on line 128 in halo2_proofs/src/fft/parallel.rs
GitHub Actions / Clippy (beta)
casting to the same type is unnecessary (`usize` -> `usize`)
Check warning on line 128 in halo2_proofs/src/fft/parallel.rs
GitHub Actions / Clippy (beta)
casting to the same type is unnecessary (`usize` -> `usize`)
Check failure on line 157 in halo2_proofs/src/fft/parallel.rs
GitHub Actions / Clippy (1.56.1)
the borrowed expression implements the required traits
Check warning on line 157 in halo2_proofs/src/fft/parallel.rs
GitHub Actions / Clippy (beta)
the borrowed expression implements the required traits
Check warning on line 157 in halo2_proofs/src/fft/parallel.rs
GitHub Actions / Clippy (beta)
the borrowed expression implements the required traits
Check failure on line 169 in halo2_proofs/src/fft/parallel.rs
GitHub Actions / Clippy (1.56.1)
casting to the same type is unnecessary (`usize` -> `usize`)
Check warning on line 169 in halo2_proofs/src/fft/parallel.rs
GitHub Actions / Clippy (beta)
casting to the same type is unnecessary (`usize` -> `usize`)
Check warning on line 169 in halo2_proofs/src/fft/parallel.rs
GitHub Actions / Clippy (beta)
casting to the same type is unnecessary (`usize` -> `usize`)
Check failure on line 173 in halo2_proofs/src/fft/parallel.rs
GitHub Actions / Clippy (1.56.1)
the borrowed expression implements the required traits
Check warning on line 173 in halo2_proofs/src/fft/parallel.rs
GitHub Actions / Clippy (beta)
the borrowed expression implements the required traits
Check warning on line 173 in halo2_proofs/src/fft/parallel.rs
GitHub Actions / Clippy (beta)
the borrowed expression implements the required traits
Check failure on line 180 in halo2_proofs/src/fft/parallel.rs
GitHub Actions / Clippy (1.56.1)
the borrowed expression implements the required traits
Check warning on line 180 in halo2_proofs/src/fft/parallel.rs
GitHub Actions / Clippy (beta)
the borrowed expression implements the required traits
Check warning on line 180 in halo2_proofs/src/fft/parallel.rs
GitHub Actions / Clippy (beta)
the borrowed expression implements the required traits
Check failure on line 184 in halo2_proofs/src/fft/parallel.rs
GitHub Actions / Clippy (1.56.1)
the borrowed expression implements the required traits
Check warning on line 184 in halo2_proofs/src/fft/parallel.rs
GitHub Actions / Clippy (beta)
the borrowed expression implements the required traits
Check warning on line 184 in halo2_proofs/src/fft/parallel.rs
GitHub Actions / Clippy (beta)
the borrowed expression implements the required traits
Check failure on line 196 in halo2_proofs/src/fft/parallel.rs
GitHub Actions / Clippy (1.56.1)
casting to the same type is unnecessary (`usize` -> `usize`)
Check warning on line 196 in halo2_proofs/src/fft/parallel.rs
GitHub Actions / Clippy (beta)
casting to the same type is unnecessary (`usize` -> `usize`)
Check warning on line 196 in halo2_proofs/src/fft/parallel.rs
GitHub Actions / Clippy (beta)
casting to the same type is unnecessary (`usize` -> `usize`)
Check failure on line 201 in halo2_proofs/src/fft/parallel.rs
GitHub Actions / Clippy (1.56.1)
casting to the same type is unnecessary (`usize` -> `usize`)
Check warning on line 201 in halo2_proofs/src/fft/parallel.rs
GitHub Actions / Clippy (beta)
casting to the same type is unnecessary (`usize` -> `usize`)
Check warning on line 201 in halo2_proofs/src/fft/parallel.rs
GitHub Actions / Clippy (beta)
casting to the same type is unnecessary (`usize` -> `usize`)
Check failure on line 232 in halo2_proofs/src/fft/parallel.rs
GitHub Actions / Clippy (1.56.1)
the borrowed expression implements the required traits
Check warning on line 232 in halo2_proofs/src/fft/parallel.rs
GitHub Actions / Clippy (beta)
the borrowed expression implements the required traits
Check warning on line 232 in halo2_proofs/src/fft/parallel.rs
GitHub Actions / Clippy (beta)
the borrowed expression implements the required traits
Check failure on line 262 in halo2_proofs/src/fft/parallel.rs
GitHub Actions / Clippy (1.56.1)
casting to the same type is unnecessary (`usize` -> `usize`)
Check warning on line 262 in halo2_proofs/src/fft/parallel.rs
GitHub Actions / Clippy (beta)
casting to the same type is unnecessary (`usize` -> `usize`)
Check failure on line 264 in halo2_proofs/src/fft/parallel.rs
GitHub Actions / Clippy (1.56.1)
casting to the same type is unnecessary (`usize` -> `usize`)
Check warning on line 264 in halo2_proofs/src/fft/parallel.rs
GitHub Actions / Clippy (beta)
casting to the same type is unnecessary (`usize` -> `usize`)
Check warning on line 264 in halo2_proofs/src/fft/parallel.rs
GitHub Actions / Clippy (beta)
casting to the same type is unnecessary (`usize` -> `usize`)
Check failure on line 87 in halo2_proofs/src/fft/recursive.rs
GitHub Actions / Clippy (1.56.1)
casting to the same type is unnecessary (`usize` -> `usize`)
Check warning on line 87 in halo2_proofs/src/fft/recursive.rs
GitHub Actions / Clippy (beta)
casting to the same type is unnecessary (`usize` -> `usize`)
Check warning on line 87 in halo2_proofs/src/fft/recursive.rs
GitHub Actions / Clippy (beta)
casting to the same type is unnecessary (`usize` -> `usize`)
Check failure on line 107 in halo2_proofs/src/fft/recursive.rs
GitHub Actions / Clippy (1.56.1)
the borrowed expression implements the required traits
Check warning on line 107 in halo2_proofs/src/fft/recursive.rs
GitHub Actions / Clippy (beta)
the borrowed expression implements the required traits
Check warning on line 107 in halo2_proofs/src/fft/recursive.rs
GitHub Actions / Clippy (beta)
the borrowed expression implements the required traits
Check failure on line 185 in halo2_proofs/src/fft/recursive.rs
GitHub Actions / Clippy (1.56.1)
casting to the same type is unnecessary (`usize` -> `usize`)
Check warning on line 185 in halo2_proofs/src/fft/recursive.rs
GitHub Actions / Clippy (beta)
casting to the same type is unnecessary (`usize` -> `usize`)
Check warning on line 185 in halo2_proofs/src/fft/recursive.rs
GitHub Actions / Clippy (beta)
casting to the same type is unnecessary (`usize` -> `usize`)
Check failure on line 187 in halo2_proofs/src/fft/recursive.rs
GitHub Actions / Clippy (1.56.1)
casting to the same type is unnecessary (`usize` -> `usize`)
Check warning on line 187 in halo2_proofs/src/fft/recursive.rs
GitHub Actions / Clippy (beta)
casting to the same type is unnecessary (`usize` -> `usize`)
Check warning on line 187 in halo2_proofs/src/fft/recursive.rs
GitHub Actions / Clippy (beta)
casting to the same type is unnecessary (`usize` -> `usize`)
Check failure on line 278 in halo2_proofs/src/fft/recursive.rs
GitHub Actions / Clippy (1.56.1)
casting to the same type is unnecessary (`usize` -> `usize`)
Check warning on line 278 in halo2_proofs/src/fft/recursive.rs
GitHub Actions / Clippy (beta)
casting to the same type is unnecessary (`usize` -> `usize`)
Check warning on line 278 in halo2_proofs/src/fft/recursive.rs
GitHub Actions / Clippy (beta)
casting to the same type is unnecessary (`usize` -> `usize`)
Check failure on line 280 in halo2_proofs/src/fft/recursive.rs
GitHub Actions / Clippy (1.56.1)
casting to the same type is unnecessary (`usize` -> `usize`)
Check warning on line 280 in halo2_proofs/src/fft/recursive.rs
GitHub Actions / Clippy (beta)
casting to the same type is unnecessary (`usize` -> `usize`)
Check warning on line 280 in halo2_proofs/src/fft/recursive.rs
GitHub Actions / Clippy (beta)
casting to the same type is unnecessary (`usize` -> `usize`)
Check failure on line 441 in halo2_proofs/src/fft/recursive.rs
GitHub Actions / Clippy (1.56.1)
casting to the same type is unnecessary (`usize` -> `usize`)
Check warning on line 441 in halo2_proofs/src/fft/recursive.rs
GitHub Actions / Clippy (beta)
casting to the same type is unnecessary (`usize` -> `usize`)
Check warning on line 441 in halo2_proofs/src/fft/recursive.rs
GitHub Actions / Clippy (beta)
casting to the same type is unnecessary (`usize` -> `usize`)
Check failure on line 443 in halo2_proofs/src/fft/recursive.rs
GitHub Actions / Clippy (1.56.1)
casting to the same type is unnecessary (`usize` -> `usize`)
Check warning on line 443 in halo2_proofs/src/fft/recursive.rs
GitHub Actions / Clippy (beta)
casting to the same type is unnecessary (`usize` -> `usize`)
Check warning on line 443 in halo2_proofs/src/fft/recursive.rs
GitHub Actions / Clippy (beta)
casting to the same type is unnecessary (`usize` -> `usize`)
Check failure on line 694 in halo2_proofs/src/plonk/evaluation.rs
GitHub Actions / Clippy (1.56.1)
the borrowed expression implements the required traits
Check warning on line 694 in halo2_proofs/src/plonk/evaluation.rs
GitHub Actions / Clippy (beta)
the borrowed expression implements the required traits
Check warning on line 694 in halo2_proofs/src/plonk/evaluation.rs
GitHub Actions / Clippy (beta)
the borrowed expression implements the required traits
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch with the versioning.
I would prefer
idx = (31 - (degree as u32).leading_zeros()) as usize
over introducing floating-point math.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
NP, let's back to the origin code :)
Check failure on line 554 in halo2_proofs/src/plonk/prover.rs
GitHub Actions / Clippy (1.56.1)
casting to the same type is unnecessary (`u64` -> `u64`)
Check failure on line 554 in halo2_proofs/src/plonk/prover.rs
GitHub Actions / Clippy (1.56.1)
the borrowed expression implements the required traits
Check warning on line 554 in halo2_proofs/src/plonk/prover.rs
GitHub Actions / Clippy (beta)
casting to the same type is unnecessary (`u64` -> `u64`)
Check warning on line 554 in halo2_proofs/src/plonk/prover.rs
GitHub Actions / Clippy (beta)
the borrowed expression implements the required traits
Check warning on line 554 in halo2_proofs/src/plonk/prover.rs
GitHub Actions / Clippy (beta)
casting to the same type is unnecessary (`u64` -> `u64`)
Check warning on line 554 in halo2_proofs/src/plonk/prover.rs
GitHub Actions / Clippy (beta)
the borrowed expression implements the required traits
Check failure on line 102 in halo2_proofs/src/poly/domain.rs
GitHub Actions / Clippy (1.56.1)
casting to the same type is unnecessary (`u64` -> `u64`)
Check failure on line 102 in halo2_proofs/src/poly/domain.rs
GitHub Actions / Clippy (1.56.1)
the borrowed expression implements the required traits
Check warning on line 102 in halo2_proofs/src/poly/domain.rs
GitHub Actions / Clippy (beta)
casting to the same type is unnecessary (`u64` -> `u64`)
Check warning on line 102 in halo2_proofs/src/poly/domain.rs
GitHub Actions / Clippy (beta)
the borrowed expression implements the required traits
Check warning on line 102 in halo2_proofs/src/poly/domain.rs
GitHub Actions / Clippy (beta)
casting to the same type is unnecessary (`u64` -> `u64`)
Check warning on line 102 in halo2_proofs/src/poly/domain.rs
GitHub Actions / Clippy (beta)
the borrowed expression implements the required traits
Check failure on line 103 in halo2_proofs/src/poly/domain.rs
GitHub Actions / Clippy (1.56.1)
casting to the same type is unnecessary (`u64` -> `u64`)
Check failure on line 103 in halo2_proofs/src/poly/domain.rs
GitHub Actions / Clippy (1.56.1)
the borrowed expression implements the required traits
Check warning on line 103 in halo2_proofs/src/poly/domain.rs
GitHub Actions / Clippy (beta)
casting to the same type is unnecessary (`u64` -> `u64`)
Check warning on line 103 in halo2_proofs/src/poly/domain.rs
GitHub Actions / Clippy (beta)
the borrowed expression implements the required traits
Check warning on line 103 in halo2_proofs/src/poly/domain.rs
GitHub Actions / Clippy (beta)
casting to the same type is unnecessary (`u64` -> `u64`)
Check warning on line 103 in halo2_proofs/src/poly/domain.rs
GitHub Actions / Clippy (beta)
the borrowed expression implements the required traits
Check failure on line 195 in halo2_proofs/src/poly/domain.rs
GitHub Actions / Clippy (1.56.1)
casting to the same type is unnecessary (`usize` -> `usize`)
Check warning on line 195 in halo2_proofs/src/poly/domain.rs
GitHub Actions / Clippy (beta)
casting to the same type is unnecessary (`usize` -> `usize`)
Check warning on line 195 in halo2_proofs/src/poly/domain.rs
GitHub Actions / Clippy (beta)
casting to the same type is unnecessary (`usize` -> `usize`)
Check failure on line 550 in halo2_proofs/src/poly/domain.rs
GitHub Actions / Clippy (1.56.1)
the borrowed expression implements the required traits
Check warning on line 550 in halo2_proofs/src/poly/domain.rs
GitHub Actions / Clippy (beta)
the borrowed expression implements the required traits
Check warning on line 550 in halo2_proofs/src/poly/domain.rs
GitHub Actions / Clippy (beta)
the borrowed expression implements the required traits
Check failure on line 616 in halo2_proofs/src/poly/domain.rs
GitHub Actions / Clippy (1.56.1)
the borrowed expression implements the required traits
Check warning on line 616 in halo2_proofs/src/poly/domain.rs
GitHub Actions / Clippy (beta)
the borrowed expression implements the required traits
Check warning on line 616 in halo2_proofs/src/poly/domain.rs
GitHub Actions / Clippy (beta)
the borrowed expression implements the required traits
Check failure on line 620 in halo2_proofs/src/poly/domain.rs
GitHub Actions / Clippy (1.56.1)
the borrowed expression implements the required traits
Check warning on line 620 in halo2_proofs/src/poly/domain.rs
GitHub Actions / Clippy (beta)
the borrowed expression implements the required traits
Check warning on line 620 in halo2_proofs/src/poly/domain.rs
GitHub Actions / Clippy (beta)
the borrowed expression implements the required traits
Check warning on line 774 in halo2_proofs/src/poly/domain.rs
GitHub Actions / Clippy (beta)
the borrowed expression implements the required traits
Check warning on line 784 in halo2_proofs/src/poly/domain.rs
GitHub Actions / Clippy (beta)
the borrowed expression implements the required traits
Check warning on line 880 in halo2_proofs/src/poly/domain.rs
GitHub Actions / Clippy (beta)
casting to the same type is unnecessary (`usize` -> `usize`)
Check warning on line 938 in halo2_proofs/src/poly/domain.rs
GitHub Actions / Clippy (beta)
casting to the same type is unnecessary (`usize` -> `usize`)