Mercurial > cpython-lru_cache-weakref
diff Python/ceval.c @ 13096:8c8de5b736dc legacy-trunk
Trent Mick's Win64 changes: size_t vs. int or long; also some overflow
tests.
| author | Guido van Rossum <guido@python.org> |
|---|---|
| date | Wed, 28 Jun 2000 22:07:35 +0000 |
| parents | 8d7ad3818ea6 |
| children | 916fb024ce94 |
line wrap: on
line diff
--- a/Python/ceval.c Wed Jun 28 22:05:44 2000 +0000 +++ b/Python/ceval.c Wed Jun 28 22:07:35 2000 +0000 @@ -2876,7 +2876,7 @@ } 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;
