summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBerker Peksag <berker.peksag@gmail.com>2016-09-12 04:47:33 (GMT)
committerBerker Peksag <berker.peksag@gmail.com>2016-09-12 04:47:33 (GMT)
commit1d7feab78a5a6ad98930ca44a797fcd05ff69794 (patch)
treed97c643dba3eb2392fc12cd1b7b3976384e4adfb
parent8a2150aae6db4d664c96a038ef6abacd4bcbcdc9 (diff)
parented6224ee0ceb0118cbc7f04278d8f2fefddddddd (diff)
downloadcpython-1d7feab78a5a6ad98930ca44a797fcd05ff69794.zip
cpython-1d7feab78a5a6ad98930ca44a797fcd05ff69794.tar.gz
cpython-1d7feab78a5a6ad98930ca44a797fcd05ff69794.tar.bz2
Issue #28045: Merge from 3.5
-rw-r--r--Objects/rangeobject.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/rangeobject.c b/Objects/rangeobject.c
index 8e74132..e7c3709 100644
--- a/Objects/rangeobject.c
+++ b/Objects/rangeobject.c
@@ -399,7 +399,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);