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
Erik Charlebois 2013-05-13 18:18:48 -04:00
parent ffe41b3d7f
commit 5027f75d79
1 changed files with 2 additions and 2 deletions

View File

@ -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