mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Fix signedness of various char variables to stop causing a warning under gcc 4.
This commit is contained in:
parent
55fa66dd45
commit
c9371d4a1b
3 changed files with 12 additions and 12 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue