summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2016-10-16 02:03:06 (GMT)
committerRaymond Hettinger <python@rcn.com>2016-10-16 02:03:06 (GMT)
commit4186222e63bc98c1648fef1a11420a29335b199a (patch)
treea133b9410dc1c0a688afbcf4d2d584cafaec945e /Python
parent7d6dd05d85b8db66f77d0e64eb92583fa6761514 (diff)
downloadcpython-4186222e63bc98c1648fef1a11420a29335b199a.zip
cpython-4186222e63bc98c1648fef1a11420a29335b199a.tar.gz
cpython-4186222e63bc98c1648fef1a11420a29335b199a.tar.bz2
Minor fix-up to apply the stack adjustment macros consistent with the other opcodes
Diffstat (limited to 'Python')
-rw-r--r--Python/ceval.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Python/ceval.c b/Python/ceval.c
index 3e74819..b50ad3c 100644
--- a/Python/ceval.c
+++ b/Python/ceval.c
@@ -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);