Modify int32 in the ToStringE function

Reason:
1. Be consistent with other int type
This commit is contained in:
Jin Peng 2022-05-30 14:51:50 +08:00 committed by GitHub
parent 2b0eb0f724
commit dd8bbfc8bd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -924,7 +924,7 @@ func ToStringE(i interface{}) (string, error) {
case int64: case int64:
return strconv.FormatInt(s, 10), nil return strconv.FormatInt(s, 10), nil
case int32: case int32:
return strconv.Itoa(int(s)), nil return strconv.FormatInt(int64(s), 10), nil
case int16: case int16:
return strconv.FormatInt(int64(s), 10), nil return strconv.FormatInt(int64(s), 10), nil
case int8: case int8: