From 981da43f1e5d79e7fc6f91bc04bd1a59555ee090 Mon Sep 17 00:00:00 2001 From: Martin Tournoij Date: Sun, 29 Aug 2021 11:16:35 +0800 Subject: [PATCH] Fix tests on 32bit platforms Use 64bit int instead of strconv.Atoi, which uses the int type, the size of which is platform-dependent. Ref: #314 --- internal/tag/rm.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/tag/rm.go b/internal/tag/rm.go index bdd0e4d9..68eab955 100644 --- a/internal/tag/rm.go +++ b/internal/tag/rm.go @@ -67,7 +67,7 @@ func untag(typed map[string]interface{}) (interface{}, error) { case "string": return v, nil case "integer": - n, err := strconv.Atoi(v) + n, err := strconv.ParseInt(v, 10, 64) if err != nil { return nil, fmt.Errorf("untag: %w", err) }