mirror of
https://github.com/python/cpython.git
synced 2026-01-06 15:32:22 +00:00
Replace INT_MAX with PY_SSIZE_T_MAX.
This commit is contained in:
parent
2a19074a9c
commit
b1ed7fac12
5 changed files with 11 additions and 12 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue