[Python-3000-checkins] r60686 - python/branches/py3k/Objects/rangeobject.c
raymond.hettinger
python-3000-checkins at python.org
Sat Feb 9 05:13:49 CET 2008
Author: raymond.hettinger
Date: Sat Feb 9 05:13:49 2008
New Revision: 60686
Modified:
python/branches/py3k/Objects/rangeobject.c
Log:
Merge r60673
Modified: python/branches/py3k/Objects/rangeobject.c
==============================================================================
--- python/branches/py3k/Objects/rangeobject.c (original)
+++ python/branches/py3k/Objects/rangeobject.c Sat Feb 9 05:13:49 2008
@@ -220,7 +220,7 @@
}
/* XXX(nnorwitz): optimize for short ints. */
- rem = PyLong_FromSsize_t(i % len);
+ rem = PyLong_FromSsize_t(i);
if (!rem)
return NULL;
incr = PyNumber_Multiply(rem, r->step);
More information about the Python-3000-checkins
mailing list