From 8d96697623402d9152422939a88fc3a9cffd6374 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Sat, 30 Oct 2010 14:53:25 +0200 Subject: [PATCH] GCC: Fixed compiler warnings --- lib/checkbufferoverrun.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/checkbufferoverrun.cpp b/lib/checkbufferoverrun.cpp index 25be24834..bc90bcd71 100644 --- a/lib/checkbufferoverrun.cpp +++ b/lib/checkbufferoverrun.cpp @@ -714,7 +714,10 @@ void CheckBufferOverrun::checkScope(const Token *tok, const std::vector 0) { - ArrayInfo arrayInfo(0U, varnames, total_size / size, size); + ArrayInfo arrayInfo(0U, + varnames, + (unsigned int)(total_size / size), + (unsigned int)size); if (Token::Match(tok, ("%var% ( " + varnames + " ,").c_str())) checkFunctionCall(*tok, 1, arrayInfo); if (Token::Match(tok, ("%var% ( %var% , " + varnames + " ,").c_str()))