Fix off by one error
This commit is contained in:
@@ -826,7 +826,7 @@ int getChildLeq(Node *self, int child) {
|
|||||||
uint64_t word;
|
uint64_t word;
|
||||||
memcpy(&word, nonNull, kUnrollCount);
|
memcpy(&word, nonNull, kUnrollCount);
|
||||||
if (word) {
|
if (word) {
|
||||||
return i + 8 - __builtin_clzll(word) / 8;
|
return i + 7 - __builtin_clzll(word) / 8;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
|
Reference in New Issue
Block a user