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