diff options
| author | Julian Andres Klode <jak@debian.org> | 2013-10-23 19:43:03 +0200 |
|---|---|---|
| committer | Julian Andres Klode <jak@debian.org> | 2013-10-23 19:43:03 +0200 |
| commit | 64639a3e1df8ed220250c4c1e56aa93d76c652a6 (patch) | |
| tree | 629f61677cba0823e1197ba92a752bce8a690210 /python/cache.cc | |
| parent | a2b3528a6b96c11a8c3f0600a5cde778a7911b4e (diff) | |
| download | python-apt-64639a3e1df8ed220250c4c1e56aa93d76c652a6.tar.gz | |
python/cache.cc: Remove a check for an unsigned long value < 0
This is impossible.
Diffstat (limited to 'python/cache.cc')
| -rw-r--r-- | python/cache.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/python/cache.cc b/python/cache.cc index 2fa556e1..983b56ec 100644 --- a/python/cache.cc +++ b/python/cache.cc @@ -49,7 +49,7 @@ template<typename T> struct IterListStruct IterListStruct() : LastIndex(0) {}; bool move(unsigned long Index) { - if (Index < 0 || (unsigned)Index >= Count()) + if ((unsigned)Index >= Count()) { PyErr_SetNone(PyExc_IndexError); return false; |
