diff Python/ceval.c @ 54907:368478859fe3 legacy-trunk

use stack macros
author Benjamin Peterson <benjamin@python.org>
date Sun, 28 Jun 2009 16:14:07 +0000
parents de866f47d38a
children 6210dedd2cf7
line wrap: on
line diff
--- a/Python/ceval.c	Sun Jun 28 16:08:02 2009 +0000
+++ b/Python/ceval.c	Sun Jun 28 16:14:07 2009 +0000
@@ -1424,7 +1424,7 @@
 
 		case LIST_APPEND:
 			w = POP();
-			v = stack_pointer[-oparg];
+			v = PEEK(oparg);
 			err = PyList_Append(v, w);
 			Py_DECREF(w);
 			if (err == 0) {
@@ -1954,7 +1954,7 @@
 				}
 			} else if (unpack_iterable(v, oparg,
 						   stack_pointer + oparg)) {
-				stack_pointer += oparg;
+				STACKADJ(oparg);
 			} else {
 				/* unpack_iterable() raised an exception */
 				why = WHY_EXCEPTION;