Skip to content

Commit dff9a37

Browse files
committed
tweak checker
1 parent 59aaaf1 commit dff9a37

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/checkother.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ void CheckOther::warningOldStylePointerCast()
314314
tok = scope->bodyStart;
315315
for (; tok && tok != scope->bodyEnd; tok = tok->next()) {
316316
// Old style pointer casting..
317-
if (tok->str() != "(")
317+
if (!tok->isCast() || tok->isBinaryOp())
318318
continue;
319319
const Token* castTok = tok->next();
320320
while (Token::Match(castTok, "const|volatile|class|struct|union|%type%|::")) {

0 commit comments

Comments
 (0)