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
notice that the test for if a value is 0 comes after the more expensive subtraction after an AND but also we need to simply check that the value is greater than 0 because that test fails anyways for negative powers of 2 for example -4, -8, -2 etc
Summary of Bug
If we examine this code to determine if a value is a power of 2
go-square/shares/powers_of_two.go
Line 43 in 4135f35
notice that the test for if a value is 0 comes after the more expensive subtraction after an AND but also we need to simply check that the value is greater than 0 because that test fails anyways for negative powers of 2 for example -4, -8, -2 etc
Suggestion
/cc @elias-orijtech
Version
4135f35
Steps to Reproduce
Please follow the steps that I reported
For Admin Use
The text was updated successfully, but these errors were encountered: