summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--src/blitter/ntapi_blt_alloc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/blitter/ntapi_blt_alloc.c b/src/blitter/ntapi_blt_alloc.c
index e010441..52397d5 100644
--- a/src/blitter/ntapi_blt_alloc.c
+++ b/src/blitter/ntapi_blt_alloc.c
@@ -15,7 +15,8 @@
static int __blt_popcount(uintptr_t mask)
{
/* todo: check cpuid, use at_popcount */
- int i,ret;
+ uintptr_t i;
+ int ret;
for (i=0,ret=0; i<8*sizeof(uintptr_t); i++)
if (mask & ((uintptr_t)1<<i))