diff options
author | Berker Peksag <berker.peksag@gmail.com> | 2016-09-12 04:47:04 (GMT) |
---|---|---|
committer | Berker Peksag <berker.peksag@gmail.com> | 2016-09-12 04:47:04 (GMT) |
commit | ed6224ee0ceb0118cbc7f04278d8f2fefddddddd (patch) | |
tree | 793494ddb13490cdc83ad7db4accbd8e6ea24826 | |
parent | c5ee3caa807abeb14b586117ce36bc1c2a762390 (diff) | |
download | cpython-ed6224ee0ceb0118cbc7f04278d8f2fefddddddd.zip cpython-ed6224ee0ceb0118cbc7f04278d8f2fefddddddd.tar.gz cpython-ed6224ee0ceb0118cbc7f04278d8f2fefddddddd.tar.bz2 |
Issue #28045: Fix comment in range_contains_long()
Patch by wim glenn.
-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 0e9eb20..288be4f 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); |