mirror of
https://gitee.com/johng/gf
synced 2026-06-07 10:22:11 +08:00
remove uint repeat conversion (#2096)
Co-authored-by: houseme <housemecn@gmail.com>
This commit is contained in:
@ -113,7 +113,7 @@ func Uint64(any interface{}) uint64 {
|
||||
if valueFloat64 := Float64(value); math.IsNaN(valueFloat64) {
|
||||
return 0
|
||||
} else {
|
||||
return uint64(Float64(value))
|
||||
return uint64(valueFloat64)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user