update 2.7 (#46): fix Auto tree
This commit is contained in:
parent
b153728e82
commit
7930c90f24
@ -146,12 +146,16 @@ struct __declspec(align(8)) UniDict {
|
|||||||
|
|
||||||
#undef DictCheckNull
|
#undef DictCheckNull
|
||||||
|
|
||||||
|
int32_t index = 0;
|
||||||
for (auto& entry : *entries)
|
for (auto& entry : *entries)
|
||||||
{
|
{
|
||||||
if (entry.next != 0xffffffff)
|
if (index >= count)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
if (entry.hashCode > 0)
|
||||||
pairs.push_back({ entry.key, entry.value });
|
pairs.push_back({ entry.key, entry.value });
|
||||||
|
|
||||||
|
index++;
|
||||||
}
|
}
|
||||||
|
|
||||||
return pairs;
|
return pairs;
|
||||||
|
Loading…
Reference in New Issue
Block a user