summaryrefslogtreecommitdiff
path: root/apt-pkg
diff options
context:
space:
mode:
authorAngel Guzman Maeso <shakaran@gmail.com>2013-08-22 16:54:20 +0200
committerDavid Kalnischkies <kalnischkies@gmail.com>2013-08-22 16:54:20 +0200
commit7e02baf61fa07a83d6dd5622d135765c47f1b5dc (patch)
tree7730a3c8fb35547d29b489959f5e4dd0114533ba /apt-pkg
parent5add00693a41234b218512f1f8b3e46b44f5f8d3 (diff)
fix compiler warning about sign-compare
This fix avoids 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.
Diffstat (limited to 'apt-pkg')
-rw-r--r--apt-pkg/contrib/fileutl.cc3
1 files changed, 2 insertions, 1 deletions
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<std::string> Glob(std::string const &pattern, int flags)
{
std::vector<std::string> result;
glob_t globbuf;
- int glob_res, i;
+ int glob_res;
+ unsigned int i;
glob_res = glob(pattern.c_str(), flags, NULL, &globbuf);