index
:
c9x.me/qbe.git
dev
loopopt
master
winabi
QBE - Backend Compiler
about
summary
refs
log
tree
commit
diff
log msg
author
committer
range
diff options
context:
1
2
3
4
5
6
7
8
9
10
15
20
25
30
35
40
space:
include
ignore
mode:
unified
ssdiff
stat only
Diffstat
-rw-r--r--
simpl.c
2
1 files changed, 1 insertions, 1 deletions
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