Fix large integer initialization

This commit is contained in:
Rerumu
2022-07-08 12:41:45 -04:00
parent fb684eff8f
commit 85aeca9d9f
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -31,7 +31,7 @@ function Numeric.into_u32(data)
end
function Numeric.from_u64(value)
return from_u32(bit_and(value), bit_and(value / 0x100000000))
return from_u32(bit_and(value % 0x100000000), bit_and(value / 0x100000000))
end
function Numeric.into_u64(value)
+1 -1
View File
@@ -47,7 +47,7 @@ function Numeric.into_u32(value)
end
function Numeric.from_u64(value)
return from_u32(bit_and(value), bit_and(value / 0x100000000))
return from_u32(bit_and(value % 0x100000000), bit_and(value / 0x100000000))
end
function Numeric.into_u64(value)