You've already forked json-iterator
mirror of
https://github.com/json-iterator/go.git
synced 2025-06-15 22:50:24 +02:00
add basic int test
This commit is contained in:
@ -42,7 +42,10 @@ func (any *floatAny) ToInt64() int64 {
|
||||
}
|
||||
|
||||
func (any *floatAny) ToUint() uint {
|
||||
return uint(any.val)
|
||||
if any.val > 0 {
|
||||
return uint(any.val)
|
||||
}
|
||||
return uint(-any.val)
|
||||
}
|
||||
|
||||
func (any *floatAny) ToUint32() uint32 {
|
||||
|
Reference in New Issue
Block a user