Skip to content

Commit

Permalink
Fix tests on 32bit platforms
Browse files Browse the repository at this point in the history
Use 64bit int instead of strconv.Atoi, which uses the int type, the size
of which is platform-dependent.

Ref: #314
  • Loading branch information
arp242 committed Aug 29, 2021
1 parent 2b0f0f9 commit 981da43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/tag/rm.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit 981da43

Please sign in to comment.