]> granicus.if.org Git - python/commitdiff
(int) cast for strlen() to keep picky compilers happy.
authorGuido van Rossum <guido@python.org>
Tue, 13 May 1997 17:50:01 +0000 (17:50 +0000)
committerGuido van Rossum <guido@python.org>
Tue, 13 May 1997 17:50:01 +0000 (17:50 +0000)
Python/ceval.c

index e23ea7251b76e01302d5b4d894b766ecf1dbcd8b..032b14da96580fb1702597f84259ef840d328b6a 100644 (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;