mirror of
https://github.com/rojo-rbx/rojo.git
synced 2026-10-22 21:41:37 +00:00
Also normalize mostSignificantPart
This commit is contained in:
parent
78991c7e82
commit
330f51a4e7
1 changed files with 1 additions and 1 deletions
|
|
@ -18,7 +18,7 @@ Http.Response = HttpResponse
|
||||||
-- to a native Luau number. We should change the upstream decoder to emit a native
|
-- to a native Luau number. We should change the upstream decoder to emit a native
|
||||||
-- integer, once those are live.
|
-- integer, once those are live.
|
||||||
function msgpack.UInt64.new(mostSignificantPart: number, leastSignificantPart: number): number
|
function msgpack.UInt64.new(mostSignificantPart: number, leastSignificantPart: number): number
|
||||||
return mostSignificantPart * 2 ^ 32 + (leastSignificantPart % 2 ^ 32)
|
return (mostSignificantPart % 2 ^ 32) * 2 ^ 32 + (leastSignificantPart % 2 ^ 32)
|
||||||
end
|
end
|
||||||
|
|
||||||
local function performRequest(requestParams)
|
local function performRequest(requestParams)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue