small string generator fixes

This commit is contained in:
FeralChild64 committed 2020-06-23 20:42:32 +02:00
1 parent 9e6dcd0b08
commit 4e669bd908
1 file changed
+3 -3
+3 -3
View File
@@ -710,8 +710,8 @@ bool DictEncoder::optimizeSplit()
int32_t candidateScore = evaluateCandidate(*iter); int32_t candidateScore = evaluateCandidate(*iter);
if (candidateScore > bestCandidateScore) if (candidateScore > bestCandidateScore)
{ {
bestCandidate = iter; bestCandidate = iter;
bestCandidateScore = bestCandidateScore; bestCandidateScore = candidateScore;
} }
} }
@@ -997,7 +997,7 @@ void DataSet::validateLists()
for (const auto &character : stringEntry.string) for (const auto &character : stringEntry.string)
{ {
if (character >= 0x80) if ((unsigned char) character >= 0x80)
{ {
ERROR(std::string("character above 0x80 in string '") + stringEntry.string + "'"); ERROR(std::string("character above 0x80 in string '") + stringEntry.string + "'");
} }