Commit 5f15b96c authored by Guido van Rossum's avatar Guido van Rossum

(int) cast for strlen() to keep picky compilers happy.

parent 725a67e5
...@@ -2642,7 +2642,7 @@ exec_statement(f, prog, globals, locals) ...@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment