From: Berker Peksag Date: Mon, 12 Sep 2016 04:47:04 +0000 (+0300) Subject: Issue #28045: Fix comment in range_contains_long() X-Git-Tag: v3.6.0b1~17^2~6^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ed6224ee0ceb0118cbc7f04278d8f2fefddddddd;p=thirdparty%2FPython%2Fcpython.git Issue #28045: Fix comment in range_contains_long() Patch by wim glenn. --- diff --git a/Objects/rangeobject.c b/Objects/rangeobject.c index 0e9eb20154b7..288be4fb6939 100644 --- a/Objects/rangeobject.c +++ b/Objects/rangeobject.c @@ -406,7 +406,7 @@ range_contains_long(rangeobject *r, PyObject *ob) tmp2 = PyNumber_Remainder(tmp1, r->step); if (tmp2 == NULL) goto end; - /* result = (int(ob) - start % step) == 0 */ + /* result = ((int(ob) - start) % step) == 0 */ result = PyObject_RichCompareBool(tmp2, zero, Py_EQ); end: Py_XDECREF(tmp1);