mirror of
https://github.com/python/cpython.git
synced 2025-10-02 21:25:24 +00:00
(int) cast for strlen() to keep picky compilers happy.
This commit is contained in:
parent
725a67e5c2
commit
5f15b96c36
1 changed files with 1 additions and 1 deletions
|
@ -2642,7 +2642,7 @@ exec_statement(f, prog, globals, locals)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
s = PyString_AsString(prog);
|
s = PyString_AsString(prog);
|
||||||
if (strlen(s) != PyString_Size(prog)) {
|
if ((int)strlen(s) != PyString_Size(prog)) {
|
||||||
PyErr_SetString(PyExc_ValueError,
|
PyErr_SetString(PyExc_ValueError,
|
||||||
"embedded '\\0' in exec string");
|
"embedded '\\0' in exec string");
|
||||||
return -1;
|
return -1;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue