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 #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;