From b3a2b69120d7520dffb56446bb8d7e868ff3b7d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Mon, 4 Mar 2013 19:28:27 +0100 Subject: [PATCH] fixed gcc warning --- lib/checkclass.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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