From 30358c820579e1fe897263a119001884172c22fe Mon Sep 17 00:00:00 2001 From: Rerumu Date: Wed, 18 May 2022 19:19:38 -0400 Subject: [PATCH] Remove signedness test for unsigned constructor --- codegen-luau/runtime/numeric.lua | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/codegen-luau/runtime/numeric.lua b/codegen-luau/runtime/numeric.lua index ab76fdf..13b35d9 100644 --- a/codegen-luau/runtime/numeric.lua +++ b/codegen-luau/runtime/numeric.lua @@ -36,11 +36,7 @@ function Numeric.into_u32(data) end 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)) - end + return from_u32(bit_and(value), math_floor(value / BIT_SET_32)) end function Numeric.into_u64(value)