From 64639a3e1df8ed220250c4c1e56aa93d76c652a6 Mon Sep 17 00:00:00 2001 From: Julian Andres Klode Date: Wed, 23 Oct 2013 19:43:03 +0200 Subject: python/cache.cc: Remove a check for an unsigned long value < 0 This is impossible. --- python/cache.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'python/cache.cc') 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 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; -- cgit v1.2.3