Skip to content

Commit

Permalink
cppcheck fix
Browse files Browse the repository at this point in the history
  • Loading branch information
phlptp committed Dec 29, 2023
1 parent 48da6f5 commit ac4016e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/test_complete_unit_list.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ static std::string hexConvert(const std::string& str)
outstring.reserve(str.size());
std::size_t loc{0};
while (loc < str.size()) {
if (str[loc] == '=' && loc < str.size() - 2) {
if ( loc < str.size() - 2 && str[loc] == '=') {
auto c1 = str[loc + 1];
auto c2 = str[loc + 2];
int res{0};
Expand Down

0 comments on commit ac4016e

Please sign in to comment.