summaryrefslogtreecommitdiff
path: root/python/cache.cc
diff options
context:
space:
mode:
Diffstat (limited to 'python/cache.cc')
-rw-r--r--python/cache.cc2
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;