diff options
author | Berker Peksag <berker.peksag@gmail.com> | 2016-09-12 04:47:33 (GMT) |
---|---|---|
committer | Berker Peksag <berker.peksag@gmail.com> | 2016-09-12 04:47:33 (GMT) |
commit | 1d7feab78a5a6ad98930ca44a797fcd05ff69794 (patch) | |
tree | d97c643dba3eb2392fc12cd1b7b3976384e4adfb /Objects/rangeobject.c | |
parent | 8a2150aae6db4d664c96a038ef6abacd4bcbcdc9 (diff) | |
parent | ed6224ee0ceb0118cbc7f04278d8f2fefddddddd (diff) | |
download | cpython-1d7feab78a5a6ad98930ca44a797fcd05ff69794.zip cpython-1d7feab78a5a6ad98930ca44a797fcd05ff69794.tar.gz cpython-1d7feab78a5a6ad98930ca44a797fcd05ff69794.tar.bz2 |
Issue #28045: Merge from 3.5
Diffstat (limited to 'Objects/rangeobject.c')
-rw-r--r-- | Objects/rangeobject.c | 2 |
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); |