[Python-checkins] cpython: Minor fix-up to apply the stack adjustment macros consistent with the other

raymond.hettinger python-checkins at python.org
Sat Oct 15 22:03:11 EDT 2016


https://hg.python.org/cpython/rev/ab13c1d0d5e6
changeset:   104509:ab13c1d0d5e6
user:        Raymond Hettinger <python at rcn.com>
date:        Sat Oct 15 19:03:06 2016 -0700
summary:
  Minor fix-up to apply the stack adjustment macros consistent with the other opcodes

files:
  Python/ceval.c |  4 ++--
  1 files changed, 2 insertions(+), 2 deletions(-)


diff --git a/Python/ceval.c b/Python/ceval.c
--- a/Python/ceval.c
+++ b/Python/ceval.c
@@ -1538,7 +1538,7 @@
 
         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 @@
             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);

-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list