summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1997-05-13 17:50:01 (GMT)
committerGuido van Rossum <guido@python.org>1997-05-13 17:50:01 (GMT)
commit5f15b96c36487faa2ccc50738960855449c5c009 (patch)
tree5a6cd2e4b58ff11bf3590c6f1132356ca9b0cf97
parent725a67e5c20c5a93d50728a8a07ef1757d356d79 (diff)
downloadcpython-5f15b96c36487faa2ccc50738960855449c5c009.zip
cpython-5f15b96c36487faa2ccc50738960855449c5c009.tar.gz
cpython-5f15b96c36487faa2ccc50738960855449c5c009.tar.bz2
(int) cast for strlen() to keep picky compilers happy.
-rw-r--r--Python/ceval.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/ceval.c b/Python/ceval.c
index e23ea72..032b14d 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;