mirror of
https://github.com/python/cpython.git
synced 2025-11-01 10:45:30 +00:00
Use Py_ssize_t to count the
This commit is contained in:
parent
f5adf1eb72
commit
d96ee90993
7 changed files with 24 additions and 22 deletions
|
|
@ -315,7 +315,7 @@ do_mkvalue(const char **p_format, va_list *p_va)
|
|||
|
||||
case 'n':
|
||||
#if SIZEOF_SIZE_T!=SIZEOF_LONG
|
||||
return PyLong_FromSsize_t(va_arg(*p_va, Py_Ssize_t));
|
||||
return PyInt_FromSsize_t(va_arg(*p_va, Py_ssize_t));
|
||||
#endif
|
||||
/* Fall through from 'n' to 'l' if Py_ssize_t is long */
|
||||
case 'l':
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue