summaryrefslogtreecommitdiff
path: root/util.c
diff options
context:
space:
mode:
authorLeo Tenenbaum <pommicket@gmail.com>2020-11-27 09:40:03 -0500
committerLeo Tenenbaum <pommicket@gmail.com>2020-11-27 09:40:03 -0500
commitcac24ffa13dc969244fb171b9aad565311c69f16 (patch)
tree45d8f353a5b0968ea0ea9eecc297b11749c117b6 /util.c
parent370b74e5335745ea01fc7bb6d5425360d26ca0ce (diff)
scrolling working
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;