diff Objects/rangeobject.c @ 69359:8025fb83dece 3.2

#11845: Fix typo in rangeobject.c that caused a crash in compute_slice_indices. Patch by Daniel Urban.
author Ezio Melotti <ezio.melotti@gmail.com>
date Fri, 15 Apr 2011 08:15:40 +0300
parents 3c9232a684ae
children 888f5f3bfcb6 479a7dd1ea6a
line wrap: on
line diff
--- a/Objects/rangeobject.c	Fri Apr 15 07:39:08 2011 +0300
+++ b/Objects/rangeobject.c	Fri Apr 15 08:15:40 2011 +0300
@@ -472,7 +472,7 @@
                     if (tmp_stop == NULL) goto Fail;
                 } else {
                     tmp_stop = r->length;
-                    Py_INCREF(tmp_start);
+                    Py_INCREF(tmp_stop);
                 }
             }
         }