]> granicus.if.org Git - python/commitdiff
Minor fix-up to apply the stack adjustment macros consistent with the other opcodes
authorRaymond Hettinger <python@rcn.com>
Sun, 16 Oct 2016 02:03:06 +0000 (19:03 -0700)
committerRaymond Hettinger <python@rcn.com>
Sun, 16 Oct 2016 02:03:06 +0000 (19:03 -0700)
Python/ceval.c

index 3e74819c900ced7f7f3b9d9efd1ef7e8b90214ef..b50ad3c26397212125f1bc2fc81b35bf0c68a90b 100644 (file)
@@ -1538,7 +1538,7 @@ _PyEval_EvalFrameDefault(PyFrameObject *f, int throwflag)
 
         TARGET(SET_ADD) {
             PyObject *v = POP();
-            PyObject *set = stack_pointer[-oparg];
+            PyObject *set = PEEK(oparg);
             int err;
             err = PySet_Add(set, v);
             Py_DECREF(v);
@@ -2796,7 +2796,7 @@ _PyEval_EvalFrameDefault(PyFrameObject *f, int throwflag)
             PyObject *map;
             int err;
             STACKADJ(-2);
-            map = stack_pointer[-oparg];  /* dict */
+            map = PEEK(oparg);                      /* dict */
             assert(PyDict_CheckExact(map));
             err = PyDict_SetItem(map, key, value);  /* map[key] = value */
             Py_DECREF(value);