Skip to content

Commit

Permalink
Update uint256.go
Browse files Browse the repository at this point in the history
  • Loading branch information
holiman authored Mar 31, 2023
1 parent 469c8f6 commit fc79e38
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions uint256.go
Original file line number Diff line number Diff line change
Expand Up @@ -938,11 +938,11 @@ func (z *Int) Cmp(x *Int) (r int) {
// -1 if z < x
// 0 if z == x
// +1 if z > x
func (z *Int) CmpUint64(n uint64) int {
if z[0] > n || (z[1]|z[2]|z[3]) != 0 {
func (z *Int) CmpUint64(x uint64) int {
if z[0] > x || (z[1]|z[2]|z[3]) != 0 {
return 1
}
if z[0] == n {
if z[0] == x {
return 0
}
return -1
Expand Down

0 comments on commit fc79e38

Please sign in to comment.