There was an error while loading. Please reload this page.
2 parents 8a2150a + ed6224e commit 1d7feabCopy full SHA for 1d7feab
1 file changed
Objects/rangeobject.c
@@ -399,7 +399,7 @@ range_contains_long(rangeobject *r, PyObject *ob)
399
tmp2 = PyNumber_Remainder(tmp1, r->step);
400
if (tmp2 == NULL)
401
goto end;
402
- /* result = (int(ob) - start % step) == 0 */
+ /* result = ((int(ob) - start) % step) == 0 */
403
result = PyObject_RichCompareBool(tmp2, zero, Py_EQ);
404
end:
405
Py_XDECREF(tmp1);
0 commit comments