From dd8bbfc8bd89a013c5012aa8781bded643558ec2 Mon Sep 17 00:00:00 2001 From: Jin Peng <554085731@qq.com> Date: Mon, 30 May 2022 14:51:50 +0800 Subject: [PATCH] Modify int32 in the ToStringE function Reason: 1. Be consistent with other int type --- caste.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/caste.go b/caste.go index 514d759..28dca3e 100644 --- a/caste.go +++ b/caste.go @@ -924,7 +924,7 @@ func ToStringE(i interface{}) (string, error) { case int64: return strconv.FormatInt(s, 10), nil case int32: - return strconv.Itoa(int(s)), nil + return strconv.FormatInt(int64(s), 10), nil case int16: return strconv.FormatInt(int64(s), 10), nil case int8: