summaryrefslogtreecommitdiff
path: root/util.c
diff options
context:
space:
mode:
authorLeo Tenenbaum <pommicket@gmail.com>2021-02-05 14:27:55 -0500
committerLeo Tenenbaum <pommicket@gmail.com>2021-02-05 14:27:55 -0500
commit6b12382231f6fe8af16554d48f2a74d9a6e53835 (patch)
tree2918f5d1ec1a0ddaeae24cf1ef2f912f3026cffa /util.c
parent759404e118b701a7c0264de5791f0158db0c7e13 (diff)
ask to reload when file is externally changed
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;