Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 5f15b96

Browse files
committed
(int) cast for strlen() to keep picky compilers happy.
1 parent 725a67e commit 5f15b96

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Python/ceval.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2642,7 +2642,7 @@ exec_statement(f, prog, globals, locals)
26422642
return 0;
26432643
}
26442644
s = PyString_AsString(prog);
2645-
if (strlen(s) != PyString_Size(prog)) {
2645+
if ((int)strlen(s) != PyString_Size(prog)) {
26462646
PyErr_SetString(PyExc_ValueError,
26472647
"embedded '\\0' in exec string");
26482648
return -1;

0 commit comments

Comments
 (0)