mirror of
https://github.com/python/cpython.git
synced 2025-09-09 18:32:22 +00:00
Trent Mick's Win64 changes: size_t vs. int or long; also some overflow
tests.
This commit is contained in:
parent
6f2a5efec9
commit
582acece2e
9 changed files with 40 additions and 21 deletions
|
@ -2876,7 +2876,7 @@ exec_statement(f, prog, globals, locals)
|
|||
}
|
||||
else {
|
||||
char *s = PyString_AsString(prog);
|
||||
if ((int)strlen(s) != PyString_Size(prog)) {
|
||||
if (strlen(s) != (size_t)PyString_Size(prog)) {
|
||||
PyErr_SetString(PyExc_ValueError,
|
||||
"embedded '\\0' in exec string");
|
||||
return -1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue