update
This commit is contained in:
parent
eca826448f
commit
690c219463
@ -90,9 +90,8 @@ func ToInt32(s string) int32 {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func ToInt64(s string) int64 {
|
func ToInt64(s string) int64 {
|
||||||
if j, err := strconv.ParseInt(s, 10, 32); err != nil {
|
if bint, err := strconv.ParseInt(s, 10, 32); err == nil {
|
||||||
return 0
|
return bint
|
||||||
} else {
|
|
||||||
return j
|
|
||||||
}
|
}
|
||||||
|
return 0
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user