diff Objects/rangeobject.c @ 45249:aebd9c4d19ed

Merge r60673
author Raymond Hettinger <python@rcn.com>
date Sat, 09 Feb 2008 04:13:49 +0000
parents 83ced4177eac
children 2a31bc28c10f
line wrap: on
line diff
--- a/Objects/rangeobject.c	Sat Feb 09 03:48:16 2008 +0000
+++ b/Objects/rangeobject.c	Sat Feb 09 04:13:49 2008 +0000
@@ -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);