HCoop
/
ntk
/
apt.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fbe0969
)
apt-pkg:contrib Avoid compiler warning about sign-compare
author
Ángel Guzmán Maeso
<shakaran@gmail.com>
Wed, 21 Aug 2013 17:38:35 +0000
(19:38 +0200)
committer
Michael Vogt
<mvo@debian.org>
Thu, 22 Aug 2013 20:25:44 +0000
(22:25 +0200)
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
apt-pkg/contrib/fileutl.cc
patch
|
blob
|
blame
|
history
diff --git
a/apt-pkg/contrib/fileutl.cc
b/apt-pkg/contrib/fileutl.cc
index
dca468c
..
47a91c2
100644
(file)
--- 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);