forked from weaselab/conflict-set
Fix always true condition
This commit is contained in:
+1
-1
@@ -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'
|
||||||
|
|||||||
Reference in New Issue
Block a user