diff Python/ceval.c @ 565:5faf93eb9256 legacy-trunk

Fix bug in assign_slice for negative index; used length of wrong object!
author Guido van Rossum <guido@python.org>
date Fri, 10 Jan 1992 00:28:07 +0000
parents 9f7161db5669
children 8c179d023583
line wrap: on
line diff
--- a/Python/ceval.c	Thu Jan 09 11:37:07 1992 +0000
+++ b/Python/ceval.c	Fri Jan 10 00:28:07 1992 +0000
@@ -1592,7 +1592,7 @@
 		else {
 			int i = getintvalue(key);
 			if (i < 0)
-				i += (*sq->sq_length)(v);
+				i += (*sq->sq_length)(w);
 			return (*func)(w, i, v);
 		}
 	}