wingo pushed a commit to branch wip-whippet
in repository guile.

commit 47c07dd0eb4e5d1481c112df031d13b98180de5a
Author: Andy Wingo <wi...@igalia.com>
AuthorDate: Wed Aug 3 16:40:34 2022 +0200

    Fix embarassing ctz issue
---
 whippet.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/whippet.h b/whippet.h
index b533093f5..49b0af9a7 100644
--- a/whippet.h
+++ b/whippet.h
@@ -1492,7 +1492,7 @@ static inline uint64_t load_mark_bytes(uint8_t *mark) {
 }
 
 static inline size_t count_zero_bytes(uint64_t bytes) {
-  return bytes ? (__builtin_ctz(bytes) / 8) : sizeof(bytes);
+  return bytes ? (__builtin_ctzll(bytes) / 8) : sizeof(bytes);
 }
 
 static size_t next_mark(uint8_t *mark, size_t limit, uint64_t sweep_mask) {

Reply via email to