summaryrefslogtreecommitdiff
path: root/apt-pkg/contrib
diff options
context:
space:
mode:
authorDavid Kalnischkies <david@kalnischkies.de>2014-02-27 03:32:13 +0100
committerDavid Kalnischkies <david@kalnischkies.de>2014-03-13 13:58:45 +0100
commitef74268b47fae1afd302a4a524b53143cbfd6ce1 (patch)
treecd193509b519d04a60b2426f292a9ee185b720b1 /apt-pkg/contrib
parentc3ccac9232c2684b15f75fa8622a9a290aeca123 (diff)
warning: cannot optimize loop, the loop counter may overflow [-Wunsafe-loop-optimizations]
Git-Dch: Ignore Reported-By: gcc -Wunsafe-loop-optimizations
Diffstat (limited to 'apt-pkg/contrib')
-rw-r--r--apt-pkg/contrib/strutl.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/apt-pkg/contrib/strutl.cc b/apt-pkg/contrib/strutl.cc
index 0d85b4fd3..61fcc6a7d 100644
--- a/apt-pkg/contrib/strutl.cc
+++ b/apt-pkg/contrib/strutl.cc
@@ -1184,7 +1184,7 @@ unsigned long RegexChoice(RxChoiceList *Rxs,const char **ListBegin,
R->Hit = false;
unsigned long Hits = 0;
- for (; ListBegin != ListEnd; ListBegin++)
+ for (; ListBegin < ListEnd; ++ListBegin)
{
// Check if the name is a regex
const char *I;