diff options
author | Brett Cannon <bcannon@gmail.com> | 2006-02-16 07:01:45 (GMT) |
---|---|---|
committer | Brett Cannon <bcannon@gmail.com> | 2006-02-16 07:01:45 (GMT) |
commit | df7d40861f7111bdfaba9537219dce4f069fc6d8 (patch) | |
tree | 19ce74ec98311b2210c98343b93eaba3ab76cd50 /Python/compile.c | |
parent | 222a704100fe744eb0e3bf158825a10f42285215 (diff) | |
download | cpython-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/compile.c')
-rw-r--r-- | Python/compile.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/compile.c b/Python/compile.c index ea325ff..a5bd09e 100644 --- a/Python/compile.c +++ b/Python/compile.c @@ -509,7 +509,7 @@ optimize_code(PyObject *code, PyObject* consts, PyObject *names, PyObject *linen /* Bypass optimization when the lineno table is too complex */ assert(PyString_Check(lineno_obj)); - lineno = PyString_AS_STRING(lineno_obj); + lineno = (unsigned char *)PyString_AS_STRING(lineno_obj); tabsiz = PyString_GET_SIZE(lineno_obj); if (memchr(lineno, 255, tabsiz) != NULL) goto exitUnchanged; |