From ef953c046511861e56978589ad5f3aa6eb9f0ece Mon Sep 17 00:00:00 2001 From: hustclf Date: Thu, 6 Apr 2023 22:38:13 +0800 Subject: [PATCH] Fix bug when deal with input value of `uint`. --- core/write.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/write.go b/core/write.go index 2225e3b2..bbd329d0 100644 --- a/core/write.go +++ b/core/write.go @@ -268,7 +268,7 @@ func copy(t reflect.Value, v reflect.Value) (err error) { } case reflect.Uint: var val64 uint64 - val64, casterr = strconv.ParseUint(vString, 10, 8) + val64, casterr = strconv.ParseUint(vString, 10, 0) if casterr == nil { castVal = uint(val64) }