Commit 0f96939c authored by Johann's avatar Johann

Use 'unsigned long' for _BitScanReverse parameter

New clang warnings in chromium reveal an incompatible pointer being
passed.

Change-Id: I0d893993726ecf899f467c16175bfb8c76329731
https://code.google.com/p/chromium/issues/detail?id=504696
parent 5327fcf8
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
#include <intrin.h> #include <intrin.h>
#pragma intrinsic(_BitScanReverse) #pragma intrinsic(_BitScanReverse)
static int bsr(int mask) { static int bsr(int mask) {
int eob; unsigned long eob;
_BitScanReverse(&eob, mask); _BitScanReverse(&eob, mask);
eob++; eob++;
if (mask == 0) if (mask == 0)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment