From fc9f19b202844fb612ccf7e0c38181e0959e7ac1 Mon Sep 17 00:00:00 2001 From: Alexander Neundorf Date: Tue, 28 Aug 2007 16:27:10 -0400 Subject: [PATCH] COMP: explicitely cast to int to silence warning with msvc8 Alex --- Source/cmMakefile.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/cmMakefile.cxx b/Source/cmMakefile.cxx index 24126f94d..8d2286122 100644 --- a/Source/cmMakefile.cxx +++ b/Source/cmMakefile.cxx @@ -1497,7 +1497,7 @@ void cmMakefile::AddSourceGroup(const std::vector& name, cmSourceGroup* sg = 0; std::vector currentName; int i = 0; - const int lastElement = name.size()-1; + const int lastElement = static_cast(name.size()-1); for(i=lastElement; i>=0; --i) { currentName.assign(name.begin(), name.begin()+i+1);