update 2.7 (#46): fix Auto tree

This commit is contained in:
CallowBlack 2022-05-31 19:28:43 +03:00
parent b153728e82
commit 7930c90f24

View File

@ -146,12 +146,16 @@ struct __declspec(align(8)) UniDict {
#undef DictCheckNull
int32_t index = 0;
for (auto& entry : *entries)
{
if (entry.next != 0xffffffff)
break;
if (index >= count)
break;
pairs.push_back({ entry.key, entry.value });
if (entry.hashCode > 0)
pairs.push_back({ entry.key, entry.value });
index++;
}
return pairs;