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 6f252c6..c1446a8 100644
--- a/util.c
+++ b/util.c
@@ -3,11 +3,11 @@
#include "base.h"
-static uint util_popcount(u64 x) {
+static u32 util_popcount(u64 x) {
#ifdef __GNUC__
- return (uint)__builtin_popcountll(x);
+ return (u32)__builtin_popcountll(x);
#else
- uint count = 0;
+ u32 count = 0;
while (x) {
x &= x-1;
++count;