summaryrefslogtreecommitdiff
path: root/Python
diff options
context:
space:
mode:
authorKristján Valur Jónsson <kristjan@ccpgames.com>2007-04-13 22:09:59 +0000
committerKristján Valur Jónsson <kristjan@ccpgames.com>2007-04-13 22:09:59 +0000
commitef62b6e00851ea84d0bbb4a9317672fcc1dca549 (patch)
treeee5a7d807f8bb3b214e3f0faef7971b464d3053a /Python
parent819c1d5471027d35bc057f6254a2f923c218caf2 (diff)
downloadcpython-ef62b6e00851ea84d0bbb4a9317672fcc1dca549.tar.gz
Fix a bug when using the __lltrace__ opcode tracer, and a problem sith signed chars in frameobject.c which can occur with opcodes > 127
Diffstat (limited to 'Python')
-rw-r--r--Python/ceval.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/ceval.c b/Python/ceval.c
index 9dddd2ff2f..b1ba4260b8 100644
--- a/Python/ceval.c
+++ b/Python/ceval.c
@@ -662,7 +662,7 @@ PyEval_EvalFrameEx(PyFrameObject *f, int throwflag)
#define STACKADJ(n) { (void)(BASIC_STACKADJ(n), \
lltrace && prtrace(TOP(), "stackadj")); \
assert(STACK_LEVEL() <= co->co_stacksize); }
-#define EXT_POP(STACK_POINTER) (lltrace && prtrace(*(STACK_POINTER), "ext_pop"), *--(STACK_POINTER))
+#define EXT_POP(STACK_POINTER) (lltrace && prtrace((STACK_POINTER)[-1], "ext_pop"), *--(STACK_POINTER))
#else
#define PUSH(v) BASIC_PUSH(v)
#define POP() BASIC_POP()