VM: Fix Windows VM build following type renaming
Making cell be a typedef of uintptr_t broke a spot assigning cell* was unsigned long*. Added an explicit cast.db4
parent
ffe41b3d7f
commit
5027f75d79
|
@ -4,14 +4,14 @@ inline cell log2(cell x) {
|
|||
cell n;
|
||||
#if defined(FACTOR_X86)
|
||||
#if defined(_MSC_VER)
|
||||
_BitScanReverse(&n, x);
|
||||
_BitScanReverse((unsigned long*)&n, x);
|
||||
#else
|
||||
asm("bsr %1, %0;" : "=r"(n) : "r"(x));
|
||||
#endif
|
||||
#elif defined(FACTOR_AMD64)
|
||||
#if defined(_MSC_VER)
|
||||
n = 0;
|
||||
_BitScanReverse64((DWORD*)&n, x);
|
||||
_BitScanReverse64((unsigned long*)&n, x);
|
||||
#else
|
||||
asm("bsr %1, %0;" : "=r"(n) : "r"(x));
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue