From: Guido van Rossum Date: Wed, 6 Nov 1996 15:31:46 +0000 (+0000) Subject: correct typo in return variable for PySequence_Index() X-Git-Tag: v1.5a1~961 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8dbcdd0a4c69125e05b58e7a00377c6b3382b9b5;p=thirdparty%2FPython%2Fcpython.git correct typo in return variable for PySequence_Index() --- diff --git a/Objects/abstract.c b/Objects/abstract.c index d434c7db812b..bb197a579697 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; }