summaryrefslogtreecommitdiff
path: root/util.c
diff options
context:
space:
mode:
Diffstat (limited to 'util.c')
-rw-r--r--util.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/util.c b/util.c
index ed0b178..1584e0b 100644
--- a/util.c
+++ b/util.c
@@ -1,8 +1,8 @@
-static u32 util_popcount(u64 x) {
+static u8 util_popcount(u64 x) {
#ifdef __GNUC__
- return (u32)__builtin_popcountll(x);
+ return (u8)__builtin_popcountll(x);
#else
- u32 count = 0;
+ u8 count = 0;
while (x) {
x &= x-1;
++count;