diff options
-rw-r--r-- | Objects/abstract.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/abstract.c b/Objects/abstract.c index d434c7d..bb197a5 100644 --- a/Objects/abstract.c +++ b/Objects/abstract.c @@ -879,7 +879,7 @@ PySequence_Index(s, o) err=PyObject_Cmp(item,o,¬_equal) == -1; Py_DECREF(item); if(err) return -1; - if(! not_equal) return n; + if(! not_equal) return i; } return -1; } |