From c19430548bf3e850ea5527a98acd7f12c346a320 Mon Sep 17 00:00:00 2001 From: Rerumu Date: Sat, 25 Jun 2022 22:52:22 -0400 Subject: [PATCH] Localize truncation --- codegen/luau/runtime/runtime.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/codegen/luau/runtime/runtime.lua b/codegen/luau/runtime/runtime.lua index 5812e1f..c2e4935 100644 --- a/codegen/luau/runtime/runtime.lua +++ b/codegen/luau/runtime/runtime.lua @@ -348,9 +348,9 @@ do function trunc.f32(num) if num >= 0 then - return math.floor(num) + return math_floor(num) else - return math.ceil(num) + return math_ceil(num) end end