Also normalize mostSignificantPart

This commit is contained in:
kennethloeffler 2026-05-03 17:08:45 -07:00
parent 78991c7e82
commit 330f51a4e7

View file

@ -18,7 +18,7 @@ Http.Response = HttpResponse
-- to a native Luau number. We should change the upstream decoder to emit a native
-- integer, once those are live.
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
local function performRequest(requestParams)