Mercurial > cpython-lru_cache-weakref
diff Python/compile.c @ 36512:3350f85c889f 2.4
Cast assignments to ``unsigned char *`` from PyString_AS_STRING() calls to
silence compiler warnings on gcc 4.0.1 .
| author | Brett Cannon <bcannon@gmail.com> |
|---|---|
| date | Thu, 16 Feb 2006 07:01:45 +0000 |
| parents | e4404046e552 |
| children | 4d80607033fb |
line wrap: on
line diff
--- a/Python/compile.c Wed Feb 15 06:56:35 2006 +0000 +++ b/Python/compile.c Thu Feb 16 07:01:45 2006 +0000 @@ -509,7 +509,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;
