Skip to content

Commit

Permalink
fix incorrect conversion between integer types
Browse files Browse the repository at this point in the history
do not parse int type with 64 bit and use 32 instead.
  • Loading branch information
sni committed Nov 24, 2023
1 parent cf67631 commit ccafdd6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/snclient/checkdata.go
Original file line number Diff line number Diff line change
Expand Up @@ -627,7 +627,7 @@ func (cd *CheckData) parseAnyArg(appendArgs map[string]bool, argExpr, keyword, a
}
*argRef = i
case *int:
i, err := strconv.ParseInt(argValue, 10, 64)
i, err := strconv.ParseInt(argValue, 10, 32)
if err != nil {
return true, fmt.Errorf("parseInt %s: %s", argExpr, err.Error())
}
Expand Down

0 comments on commit ccafdd6

Please sign in to comment.