[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: lua_number2int in bitwise operators Lua 5.2 work 3 (MSVC)
- From: Dmitry Gapkalov <gapkalov@...>
- Date: Fri, 28 May 2010 14:14:54 +0400
On MSVC compiler this construction
#define lua_number2int(i,n) __asm {__asm fld n __asm fistp i}
Example:
bit.band(0xFF000000, 0x00FFFFFF)
while debug after getting from stack, the first value is 0x80000000, second 0xFFFFFF
--
With best wishes
Dmitry Gapkalov