diff Python/ceval.c @ 41458:0d1e415ec36c legacy-trunk

Fix a bug when using the __lltrace__ opcode tracer, and a problem sith signed chars in frameobject.c which can occur with opcodes > 127
author Kristján Valur Jónsson <kristjan@ccpgames.com>
date Fri, 13 Apr 2007 22:07:33 +0000
parents 9cf22c5eee3d
children 81d9f5270e87
line wrap: on
line diff
--- a/Python/ceval.c	Fri Apr 13 18:47:14 2007 +0000
+++ b/Python/ceval.c	Fri Apr 13 22:07:33 2007 +0000
@@ -662,7 +662,7 @@
 #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()