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

This commit is contained in:
Guido van Rossum 1997-05-13 17:50:01 +00:00
parent 725a67e5c2
commit 5f15b96c36
1 changed files with 1 additions and 1 deletions

View File

@ -2642,7 +2642,7 @@ exec_statement(f, prog, globals, locals)
return 0;
}
s = PyString_AsString(prog);
if (strlen(s) != PyString_Size(prog)) {
if ((int)strlen(s) != PyString_Size(prog)) {
PyErr_SetString(PyExc_ValueError,
"embedded '\\0' in exec string");
return -1;