From 742f5897b91386745de83c1d144e3d94aaeb08a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Thu, 30 Dec 2010 22:13:10 +0100 Subject: [PATCH] gcc: fixed compiler warning --- lib/cppcheck.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/cppcheck.cpp b/lib/cppcheck.cpp index b0f96fe6e..98d2edd72 100644 --- a/lib/cppcheck.cpp +++ b/lib/cppcheck.cpp @@ -330,7 +330,7 @@ void CppCheck::checkFile(const std::string &code, const char FileName[]) { int pos = 0; int ovector[30]; - if (0 <= pcre_exec(re, NULL, str.c_str(), str.size(), pos, 0, ovector, 30)) + if (0 <= pcre_exec(re, NULL, str.c_str(), (int)str.size(), pos, 0, ovector, 30)) { unsigned int pos1 = (unsigned int)ovector[0]; unsigned int pos2 = (unsigned int)ovector[1];