From: Ángel Guzmán Maeso Date: Wed, 21 Aug 2013 17:38:35 +0000 (+0200) Subject: apt-pkg:contrib Avoid compiler warning about sign-compare X-Git-Tag: 0.9.11.1~2^2~2 X-Git-Url: https://git.saurik.com/apt.git/commitdiff_plain/ec4835a14aae3d4995894c44ec4c4801bac0235d?hp=-c apt-pkg:contrib Avoid compiler warning about sign-compare The fix avoid the warning "comparison between signed and unsigned integer expressions [-Wsign-compare]"· The index for the loop needs to be unsigned for compare with globbuf.gl_pathc structure member --- ec4835a14aae3d4995894c44ec4c4801bac0235d diff --git a/apt-pkg/contrib/fileutl.cc b/apt-pkg/contrib/fileutl.cc index dca468c63..47a91c294 100644 --- a/apt-pkg/contrib/fileutl.cc +++ b/apt-pkg/contrib/fileutl.cc @@ -1777,7 +1777,8 @@ std::vector Glob(std::string const &pattern, int flags) { std::vector result; glob_t globbuf; - int glob_res, i; + int glob_res; + unsigned int i; glob_res = glob(pattern.c_str(), flags, NULL, &globbuf);