diff --git a/src/builtins/arithd.c b/src/builtins/arithd.c index 9a27f367..9ee7d4ff 100644 --- a/src/builtins/arithd.c +++ b/src/builtins/arithd.c @@ -484,12 +484,13 @@ static u64 gcd_u64(u64 a, u64 b) { u8 sh = az>= bz; - while (a > 0) { + while (1) { a >>= az; u64 d = b - a; - az = CTZ(d); b = b