Remove signedness test for unsigned constructor
This commit is contained in:
parent
2a6033c6f4
commit
30358c8205
@ -36,11 +36,7 @@ function Numeric.into_u32(data)
|
|||||||
end
|
end
|
||||||
|
|
||||||
function Numeric.from_u64(value)
|
function Numeric.from_u64(value)
|
||||||
if value < 0 then
|
return from_u32(bit_and(value), math_floor(value / BIT_SET_32))
|
||||||
return num_negate(from_u64(-value))
|
|
||||||
else
|
|
||||||
return from_u32(bit_and(value), math_floor(value / BIT_SET_32))
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
function Numeric.into_u64(value)
|
function Numeric.into_u64(value)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user