From c15d268dd9d37e7c476ae0576c1032629a841331 Mon Sep 17 00:00:00 2001 From: Josh Rendek Date: Sat, 20 Jan 2024 12:43:29 -0500 Subject: [PATCH] Set explicit int sizes for arm32 support --- sysward-agent.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sysward-agent.go b/sysward-agent.go index 8fc847f..ba9a565 100644 --- a/sysward-agent.go +++ b/sysward-agent.go @@ -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) } @@ -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) }