Issue #28045: Merge from 3.5

This commit is contained in:
Berker Peksag 2016-09-12 07:47:33 +03:00
commit 1d7feab78a
1 changed files with 1 additions and 1 deletions

View File

@ -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);