We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b52fd48 commit d810f11Copy full SHA for d810f11
1 file changed
lib/checkother.cpp
@@ -4429,7 +4429,7 @@ void CheckOther::checkModuloOfOne()
4429
for (const Token *tok = mTokenizer->tokens(); tok; tok = tok->next()) {
4430
if (!tok->astOperand2() || !tok->astOperand1())
4431
continue;
4432
- if (tok->str() != "%")
+ if (tok->str() != "%" && tok->str() != "%=")
4433
4434
if (!tok->valueType() || !tok->valueType()->isIntegral())
4435
0 commit comments