From 0631bc4fecf9a9f96c8a520ac56371a0a86318b9 Mon Sep 17 00:00:00 2001 From: Quentin Carbonneaux Date: Mon, 17 Jun 2024 13:18:05 +0200 Subject: [PATCH] prevent bogus simplifications --- simpl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/simpl.c b/simpl.c index 99e09df..7186d2f 100644 --- a/simpl.c +++ b/simpl.c @@ -51,7 +51,7 @@ ulog2(uint64_t pow2) static int ispow2(uint64_t v) { - return (v & (v - 1)) == 0; + return v && (v & (v - 1)) == 0; } static void -- 2.11.4.GIT