You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
294b6c5 Use correct flags variable for c-i (Cory Fields)
8d52856 Fix exhaustive test check (Pieter Wuille)
Pull request description:
There were 3 issues:
1. The comparison between `counts[...]` and `Combination()` wasn't running at all (`(i >> bits)` is always 0 for i==0, so the loop would instantly exit).
2. The `counts` values were wrong (because it was counting a sum across all implementation), so if they would be compared to something, the test would incorrectly fail.
3. `(i >> bits)` is undefined when bits==64.
(1) would be fixed by changing `i >> bits` to `(i >> bits) == 0`, but that leaves issue (3), so introduce a `mask` and use a different way of writing the same, that keeps working for bits==64. (2) is fixed by only incrementing counts[...] for impl==0.
This was discovered through #50.
ACKs for top commit:
naumenkogs:
ACK 294b6c5
Tree-SHA512: 770af770898fb82abf390b7cd21f6ac8657d16dbf391c1d5825c62a3c17c8d50a36481f91254020bd00bfdda493507406df2110292fe8edc396db28181ca94b5
0 commit comments