Mercurial > cpython-lru_cache-weakref
diff Python/compile.c @ 35126:70681267a74a legacy-trunk
Fix signedness of various char variables to stop causing a warning under gcc 4.
| author | Brett Cannon <bcannon@gmail.com> |
|---|---|
| date | Sat, 25 Jun 2005 08:23:41 +0000 |
| parents | a0d3f773543d |
| children | b2fe5f8fcfdd |
line wrap: on
line diff
--- a/Python/compile.c Sat Jun 25 07:07:35 2005 +0000 +++ b/Python/compile.c Sat Jun 25 08:23:41 2005 +0000 @@ -662,7 +662,7 @@ /* 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;
