Skip to content

Commit

Permalink
Set explicit int sizes for arm32 support
Browse files Browse the repository at this point in the history
  • Loading branch information
joshrendek committed Jan 20, 2024
1 parent 7ac6c84 commit c15d268
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sysward-agent.go
Original file line number Diff line number Diff line change
Expand Up @@ -250,8 +250,8 @@ var (
agent Agent
)

func CurrentVersion() int {
i, err := strconv.Atoi(Version)
func CurrentVersion() int64 {
i, err := strconv.ParseInt(Version, 10, 64)
if err != nil {
panic(err)
}
Expand Down Expand Up @@ -281,7 +281,7 @@ func CheckForUpdate() {
panic(err)
}

latestVersion, err := strconv.Atoi(string(body))
latestVersion, err := strconv.ParseInt(string(body), 10, 64)
if err != nil {
panic(err)
}
Expand Down

0 comments on commit c15d268

Please sign in to comment.