aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorlemon <lsof@mailbox.org>2025-10-15 22:08:02 +0200
committerlemon <lsof@mailbox.org>2025-10-15 22:08:02 +0200
commitc19b3e277399a513c5e3a02d126ba666847566df (patch)
tree92ecdacdd5aced0db928bea43125d123871a7b3b
parent15d29261df4c92208754fe13bf289fb881084cb9 (diff)
lowsetsetbit
-rw-r--r--common.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/common.h b/common.h
index e6f36bf..f728eea 100644
--- a/common.h
+++ b/common.h
@@ -96,7 +96,8 @@ lowestsetbit(uvlong x)
int i = 0;
for (uvlong mask = 1;; ++i, mask <<= 1)
if (x & mask)
- return i;
+ break;
+ return i;
#endif
}