Skip to content

Commit

Permalink
fix: use int64 instead of int32
Browse files Browse the repository at this point in the history
  • Loading branch information
MrMarble committed Dec 29, 2021
1 parent 8e50d68 commit 3b63abc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@ const FORMATED_STR_PADDED = "<code> %-8v</code><code>%v</code>"

// parseInt64 parses a string and converts it to int64
func parseInt64(s string) (int64, error) {
i, err := strconv.ParseInt(s, 10, 32)
i, err := strconv.ParseInt(s, 10, 64)

if err != nil {
return 0, err
}

return int64(i), nil
return i, nil
}

func isNumber(s string) bool {
Expand Down

0 comments on commit 3b63abc

Please sign in to comment.