From 850721f9afc56b86768e24477766ee1a9ba74f11 Mon Sep 17 00:00:00 2001 From: Brad King Date: Thu, 20 Dec 2007 09:27:59 -0500 Subject: [PATCH] COMP: Fixed data loss warning. --- Source/cmLocalGenerator.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/cmLocalGenerator.cxx b/Source/cmLocalGenerator.cxx index 830f8f3b28..3e1436f5f5 100644 --- a/Source/cmLocalGenerator.cxx +++ b/Source/cmLocalGenerator.cxx @@ -1681,7 +1681,7 @@ void cmLocalGenerator::OutputLinkLibraries(std::ostream& fout, { std::string rpath; std::string linkLibs; - int minBuildRpathSize = 0; + unsigned int minBuildRpathSize = 0; if ((relink==false) && this->Makefile->IsOn("CMAKE_USE_CHRPATH") @@ -1690,7 +1690,7 @@ void cmLocalGenerator::OutputLinkLibraries(std::ostream& fout, std::string installRpath; std::string dummy; this->GetLinkerArgs(installRpath, dummy, tgt, true, 0); - minBuildRpathSize=installRpath.size(); + minBuildRpathSize = static_cast(installRpath.size()); } if (!this->GetLinkerArgs(rpath, linkLibs, tgt, relink, minBuildRpathSize))