]> gitweb.factorcode.org Git - factor.git/blobdiff - vm/bitwise_hacks.hpp
VM: Fix Windows VM build following type renaming
[factor.git] / vm / bitwise_hacks.hpp
index 7e02783e743e815fe1bd1a415dc8129f8a87f3b9..8a7078b3ddccc6415e16de8cab966f20206629b5 100644 (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