Skip to content

Commit 468acd3

Browse files
Fixed faulty boolean logic
This is a trivial logic error. The "abort" condition would be followed only if `c == 0` with other clauses having no effect.
1 parent 3aebc84 commit 468acd3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Demangling/Demangler.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1397,7 +1397,7 @@ std::string Demangler::demangleBridgedMethodParams() {
13971397

13981398
while (!nextIf('_')) {
13991399
auto c = nextChar();
1400-
if (!c && c != 'n' && c != 'b')
1400+
if (c != 'n' && c != 'b')
14011401
return std::string();
14021402
Str.push_back(c);
14031403
}

0 commit comments

Comments
 (0)