Skip to content

Commit d810f11

Browse files
Update checkother.cpp
1 parent b52fd48 commit d810f11

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
@@ -4429,7 +4429,7 @@ void CheckOther::checkModuloOfOne()
44294429
for (const Token *tok = mTokenizer->tokens(); tok; tok = tok->next()) {
44304430
if (!tok->astOperand2() || !tok->astOperand1())
44314431
continue;
4432-
if (tok->str() != "%")
4432+
if (tok->str() != "%" && tok->str() != "%=")
44334433
continue;
44344434
if (!tok->valueType() || !tok->valueType()->isIntegral())
44354435
continue;

0 commit comments

Comments
 (0)