From c9371d4a1b64074e48bfe99713970c9a01112f60 Mon Sep 17 00:00:00 2001 From: Brett Cannon Date: Sat, 25 Jun 2005 08:23:41 +0000 Subject: Fix signedness of various char variables to stop causing a warning under gcc 4. --- Python/compile.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Python/compile.c') diff --git a/Python/compile.c b/Python/compile.c index 5781b21ce4..476dbe6e56 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; -- cgit v1.2.1