From 95d4b6eb37d27ade3818e05125f1c0ec2aa7abb4 Mon Sep 17 00:00:00 2001 From: Kistaro Windrider Date: Sat, 31 May 2025 22:06:48 -0700 Subject: [PATCH] what the hell was I thinking when I wrote this --- vacuum_gambit.p8 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/vacuum_gambit.p8 b/vacuum_gambit.p8 index d923a5d..26863e9 100644 --- a/vacuum_gambit.p8 +++ b/vacuum_gambit.p8 @@ -191,7 +191,8 @@ end function ones(n) local ret = 0 while n != 0 do - ret += 1 + if (n&0x0.0001) ret += 1 + n >>= 1 end return ret end