From 0cae645c1736d9f82db283d9fd5bd0815f9aa520 Mon Sep 17 00:00:00 2001 From: Andrew Noyes Date: Sat, 10 Feb 2024 15:34:02 -0800 Subject: [PATCH] Fix always true condition --- ConflictSet.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ConflictSet.cpp b/ConflictSet.cpp index 88792d2..7a0d10d 100644 --- a/ConflictSet.cpp +++ b/ConflictSet.cpp @@ -1137,7 +1137,7 @@ std::string getPartialKeyPrintable(Node *n) { std::string strinc(std::string_view str, bool &ok) { int index; for (index = str.size() - 1; index >= 0; index--) - if (str[index] != 255) + if ((uint8_t &)(str[index]) != 255) break; // Must not be called with a string that consists only of zero or more '\xff'