summaryrefslogtreecommitdiffstats
path: root/Python/ceval.c
diff options
context:
space:
mode:
authorBrett Cannon <bcannon@gmail.com>2006-02-16 07:01:45 (GMT)
committerBrett Cannon <bcannon@gmail.com>2006-02-16 07:01:45 (GMT)
commitdf7d40861f7111bdfaba9537219dce4f069fc6d8 (patch)
tree19ce74ec98311b2210c98343b93eaba3ab76cd50 /Python/ceval.c
parent222a704100fe744eb0e3bf158825a10f42285215 (diff)
downloadcpython-df7d40861f7111bdfaba9537219dce4f069fc6d8.zip
cpython-df7d40861f7111bdfaba9537219dce4f069fc6d8.tar.gz
cpython-df7d40861f7111bdfaba9537219dce4f069fc6d8.tar.bz2
Cast assignments to ``unsigned char *`` from PyString_AS_STRING() calls to
silence compiler warnings on gcc 4.0.1 .
Diffstat (limited to 'Python/ceval.c')
-rw-r--r--Python/ceval.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/ceval.c b/Python/ceval.c
index a1cdb1d..ee3b308 100644
--- a/Python/ceval.c
+++ b/Python/ceval.c
@@ -715,7 +715,7 @@ PyEval_EvalFrame(PyFrameObject *f)
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