From 9216e4cb2748f64bb0f961c7f7a4e2537c6dd1bb Mon Sep 17 00:00:00 2001 From: Lily Brown Date: Fri, 27 Oct 2023 13:22:39 -0700 Subject: [PATCH] attempt allowing a more complex expression here --- VM/src/lnumutils.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/VM/src/lnumutils.h b/VM/src/lnumutils.h index 38bfb322..9abe0335 100644 --- a/VM/src/lnumutils.h +++ b/VM/src/lnumutils.h @@ -53,8 +53,9 @@ LUAU_FASTMATH_END #if defined(_MSC_VER) && defined(_M_IX86) #define luai_num2unsigned(i, n) \ { \ + double v = (n); \ __int64 l; \ - __asm { __asm fld n __asm fistp l} \ + __asm { __asm fld v __asm fistp l} \ ; \ i = (unsigned int)l; \ }