Skip to content

Commit

Permalink
updates
Browse files Browse the repository at this point in the history
  • Loading branch information
julienrbrt committed Aug 21, 2023
1 parent c3c134e commit 1965618
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion math/int.go
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,7 @@ var (

func (i *Int) Size() (size int) {
if i == nil || i.i == nil {
return 0
return 1
}

sign := i.Sign()
Expand Down
2 changes: 1 addition & 1 deletion math/int_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -531,7 +531,7 @@ var sizeTests = []struct {
s string
want int
}{
{"", 0},
{"", 1},
{"0", 1},
{"-0", 1},
{"-10", 3},
Expand Down

0 comments on commit 1965618

Please sign in to comment.