Remove signedness test for unsigned constructor
This commit is contained in:
@@ -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 num_negate(from_u64(-value))
|
|
||||||
else
|
|
||||||
return from_u32(bit_and(value), math_floor(value / BIT_SET_32))
|
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)
|
||||||
|
|||||||
Reference in New Issue
Block a user