summaryrefslogtreecommitdiffstats
path: root/Python/compile.c
diff options
context:
space:
mode:
authorBrett Cannon <bcannon@gmail.com>2005-06-25 08:23:41 (GMT)
committerBrett Cannon <bcannon@gmail.com>2005-06-25 08:23:41 (GMT)
commitc9371d4a1b64074e48bfe99713970c9a01112f60 (patch)
tree153d8e0a7df05cc0606fb29343eb4256df19c3ab /Python/compile.c
parent55fa66dd45e76a57deca8cebaedf1a624499648b (diff)
downloadcpython-c9371d4a1b64074e48bfe99713970c9a01112f60.zip
cpython-c9371d4a1b64074e48bfe99713970c9a01112f60.tar.gz
cpython-c9371d4a1b64074e48bfe99713970c9a01112f60.tar.bz2
Fix signedness of various char variables to stop causing a warning under gcc 4.
Diffstat (limited to 'Python/compile.c')
-rw-r--r--Python/compile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/compile.c b/Python/compile.c
index 5781b21..476dbe6 100644
--- a/Python/compile.c
+++ b/Python/compile.c
@@ -662,7 +662,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;