diff Python/ceval.c @ 36512:3350f85c889f 2.4

Cast assignments to ``unsigned char *`` from PyString_AS_STRING() calls to silence compiler warnings on gcc 4.0.1 .
author Brett Cannon <bcannon@gmail.com>
date Thu, 16 Feb 2006 07:01:45 +0000
parents 90bb71122257
children dc6dec156869
line wrap: on
line diff
--- a/Python/ceval.c	Wed Feb 15 06:56:35 2006 +0000
+++ b/Python/ceval.c	Thu Feb 16 07:01:45 2006 +0000
@@ -715,7 +715,7 @@
 	consts = co->co_consts;
 	fastlocals = f->f_localsplus;
 	freevars = f->f_localsplus + f->f_nlocals;
-	first_instr = PyString_AS_STRING(co->co_code);
+	first_instr = (unsigned char *)PyString_AS_STRING(co->co_code);
 	/* An explanation is in order for the next line.
 
 	   f->f_lasti now refers to the index of the last instruction