From fb4c12e8e0d0d53a5401a6aa1d070078083fe98c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=9C=97=E7=89=9B=E5=85=88=E7=94=9F?= Date: Fri, 29 Nov 2024 15:48:50 +0800 Subject: [PATCH] fix:string to uint64 error fix:string to uint64 error --- caste.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/caste.go b/caste.go index 4181a2e..15f99f5 100644 --- a/caste.go +++ b/caste.go @@ -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