fix:string to uint64 error

fix:string to uint64 error
This commit is contained in:
蜗牛先生 2024-11-29 15:48:50 +08:00 committed by GitHub
parent 487df00934
commit fb4c12e8e0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -613,7 +613,7 @@ func ToUint64E(i interface{}) (uint64, error) {
switch s := i.(type) {
case string:
v, err := strconv.ParseUint(trimZeroDecimal(s), 0, 0)
v, err := strconv.ParseUint(trimZeroDecimal(s), 10, 64)
if err == nil {
if v < 0 {
return 0, errNegativeNotAllowed