commit | 5098b58381e572ccd55982004da903a59ffec95c | [log] [tgz] |
---|---|---|
author | Raymond Hettinger <python@rcn.com> | Fri Oct 09 00:42:47 2015 -0400 |
committer | Raymond Hettinger <python@rcn.com> | Fri Oct 09 00:42:47 2015 -0400 |
tree | 7686976e10c8430465e614dbc6b42db9132da0eb | |
parent | 7836a27ceba2395572f1b3b385c11e6a43910185 [diff] |
Make comparison more consistent
diff --git a/Python/bltinmodule.c b/Python/bltinmodule.c index 2038d2b..3f2e2c0 100644 --- a/Python/bltinmodule.c +++ b/Python/bltinmodule.c
@@ -331,7 +331,7 @@ Py_DECREF(it); return NULL; } - if (cmp == 1) { + if (cmp > 0) { Py_DECREF(it); Py_RETURN_TRUE; }