diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2006-04-13 07:52:27 (GMT) |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2006-04-13 07:52:27 (GMT) |
commit | b1ed7fac12fe51080c06e518a9fcaa21f0734744 (patch) | |
tree | 62ec01511606af98540d5b78bb24b2b848f4064e /Python/modsupport.c | |
parent | 2a19074a9c58d491712139cd3607c10fddebbebc (diff) | |
download | cpython-b1ed7fac12fe51080c06e518a9fcaa21f0734744.zip cpython-b1ed7fac12fe51080c06e518a9fcaa21f0734744.tar.gz cpython-b1ed7fac12fe51080c06e518a9fcaa21f0734744.tar.bz2 |
Replace INT_MAX with PY_SSIZE_T_MAX.
Diffstat (limited to 'Python/modsupport.c')
-rw-r--r-- | Python/modsupport.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/modsupport.c b/Python/modsupport.c index 77a25ea..65480c8 100644 --- a/Python/modsupport.c +++ b/Python/modsupport.c @@ -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; |