summaryrefslogtreecommitdiffstats
path: root/helpers.c
diff options
context:
space:
mode:
Diffstat (limited to 'helpers.c')
-rw-r--r--helpers.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/helpers.c b/helpers.c
index a714908b7..cfa9812c2 100644
--- a/helpers.c
+++ b/helpers.c
@@ -30,9 +30,9 @@ uint32_t address_to_bits(uint32_t addr)
return 32 - lzb;
}
-int bitcount(unsigned long a)
+unsigned int bitcount(unsigned long a)
{
- int i = 0;
+ unsigned int i = 0;
for (; a != 0; a >>= 1)
if (a & 1)
i++;