mirror of
https://github.com/luau-lang/luau.git
synced 2025-04-10 22:00:54 +01:00
attempt allowing a more complex expression here
This commit is contained in:
parent
592469373b
commit
9216e4cb27
1 changed files with 2 additions and 1 deletions
|
@ -53,8 +53,9 @@ LUAU_FASTMATH_END
|
||||||
#if defined(_MSC_VER) && defined(_M_IX86)
|
#if defined(_MSC_VER) && defined(_M_IX86)
|
||||||
#define luai_num2unsigned(i, n) \
|
#define luai_num2unsigned(i, n) \
|
||||||
{ \
|
{ \
|
||||||
|
double v = (n); \
|
||||||
__int64 l; \
|
__int64 l; \
|
||||||
__asm { __asm fld n __asm fistp l} \
|
__asm { __asm fld v __asm fistp l} \
|
||||||
; \
|
; \
|
||||||
i = (unsigned int)l; \
|
i = (unsigned int)l; \
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue