Fix always true condition

This commit is contained in:
2024-02-10 15:34:02 -08:00
parent 2929a341db
commit 0cae645c17
+1 -1
View File
@@ -1137,7 +1137,7 @@ std::string getPartialKeyPrintable(Node *n) {
std::string strinc(std::string_view str, bool &ok) { std::string strinc(std::string_view str, bool &ok) {
int index; int index;
for (index = str.size() - 1; index >= 0; index--) for (index = str.size() - 1; index >= 0; index--)
if (str[index] != 255) if ((uint8_t &)(str[index]) != 255)
break; break;
// Must not be called with a string that consists only of zero or more '\xff' // Must not be called with a string that consists only of zero or more '\xff'