]> granicus.if.org Git - python/commitdiff
use stack macros
authorBenjamin Peterson <benjamin@python.org>
Sun, 28 Jun 2009 16:14:07 +0000 (16:14 +0000)
committerBenjamin Peterson <benjamin@python.org>
Sun, 28 Jun 2009 16:14:07 +0000 (16:14 +0000)
Python/ceval.c

index 8f4640416b69139a3df5039c29e35772ad147c2b..f80778c090763dfc757dd2263db4585626842e45 100644 (file)
@@ -1424,7 +1424,7 @@ PyEval_EvalFrameEx(PyFrameObject *f, int throwflag)
 
                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 @@ PyEval_EvalFrameEx(PyFrameObject *f, int throwflag)
                                }
                        } else if (unpack_iterable(v, oparg,
                                                   stack_pointer + oparg)) {
-                               stack_pointer += oparg;
+                               STACKADJ(oparg);
                        } else {
                                /* unpack_iterable() raised an exception */
                                why = WHY_EXCEPTION;