Commit 0e3d954
committed
polynomial: make Eq/PartialEq take leading zeros into account
Two polynomials are equal even if they have a different number of
leading zeros.
Putting this into its own commit rather than folding it into one of the
FieldVec commits, because this bug was present even before the FieldVec
stuff.
Also remove the `Hash` impl because it's unneeded and we would be
expected to keep it in sync with Eq.1 parent d08da46 commit 0e3d954
1 file changed
+9
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
19 | 27 | | |
20 | 28 | | |
21 | 29 | | |
22 | 30 | | |
23 | 31 | | |
24 | | - | |
25 | 32 | | |
26 | 33 | | |
27 | 34 | | |
| |||
0 commit comments