diff --git a/lib/checkclass.cpp b/lib/checkclass.cpp index 24474eb1f..b2faa8a27 100644 --- a/lib/checkclass.cpp +++ b/lib/checkclass.cpp @@ -854,12 +854,11 @@ void CheckClass::noMemset() if (var->isPointer()) derefs--; if (var->isArray()) - derefs -= var->dimensions().size(); + derefs -= (int)var->dimensions().size(); if (derefs == 0) type = var->type(); } - } // No type defined => The tokens didn't match