Replace INT_MAX with PY_SSIZE_T_MAX.

This commit is contained in:
Martin v. Löwis 2006-04-13 07:52:27 +00:00
parent 2a19074a9c
commit b1ed7fac12
5 changed files with 11 additions and 12 deletions

View file

@ -407,7 +407,7 @@ do_mkvalue(const char **p_format, va_list *p_va)
else {
if (n < 0) {
size_t m = strlen(str);
if (m > INT_MAX) {
if (m > PY_SSIZE_T_MAX) {
PyErr_SetString(PyExc_OverflowError,
"string too long for Python string");
return NULL;