From 9611345140084e8d123c56a4aab940ccad77ee1f Mon Sep 17 00:00:00 2001 From: Andrew Noyes Date: Wed, 24 Jan 2024 13:03:28 -0800 Subject: [PATCH] Fix off by one error --- ConflictSet.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ConflictSet.cpp b/ConflictSet.cpp index 17cbc94..cc10250 100644 --- a/ConflictSet.cpp +++ b/ConflictSet.cpp @@ -826,7 +826,7 @@ int getChildLeq(Node *self, int child) { uint64_t word; memcpy(&word, nonNull, kUnrollCount); if (word) { - return i + 8 - __builtin_clzll(word) / 8; + return i + 7 - __builtin_clzll(word) / 8; } } #else