Merge pull request #1063 from damilola-bello/master

Make limitToUint parse to uint instead of int
tags/v3.21.4 v3.21.4
shirou 4 years ago committed by GitHub
commit 539c0d52c0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -485,11 +485,11 @@ func limitToUint(val string) (uint64, error) {
if val == "unlimited" {
return math.MaxUint64, nil
} else {
res, err := strconv.ParseInt(val, 10, 32)
res, err := strconv.ParseUint(val, 10, 64)
if err != nil {
return 0, err
}
return uint64(res), nil
return res, nil
}
}

Loading…
Cancel
Save