Fix off by one error

This commit is contained in:
2024-01-24 13:03:28 -08:00
parent c19a555fab
commit 9611345140

View File

@@ -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