From: Guido van Rossum Date: Tue, 13 May 1997 17:50:01 +0000 (+0000) Subject: (int) cast for strlen() to keep picky compilers happy. X-Git-Tag: v1.5a2~38 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5f15b96c36487faa2ccc50738960855449c5c009;p=python (int) cast for strlen() to keep picky compilers happy. --- diff --git a/Python/ceval.c b/Python/ceval.c index e23ea7251b..032b14da96 100644 --- a/Python/ceval.c +++ b/Python/ceval.c @@ -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;