mirror of
https://github.com/python/cpython.git
synced 2025-12-31 04:23:37 +00:00
gh-143012: use Py_ssize_t cast for PyBytes_FromStringAndSize (#143013)
This commit is contained in:
parent
5b5263648f
commit
5989095dfd
1 changed files with 1 additions and 1 deletions
|
|
@ -1815,7 +1815,7 @@ convertenviron(void)
|
|||
#ifdef MS_WINDOWS
|
||||
k = PyUnicode_FromWideChar(*e, (Py_ssize_t)(p-*e));
|
||||
#else
|
||||
k = PyBytes_FromStringAndSize(*e, (int)(p-*e));
|
||||
k = PyBytes_FromStringAndSize(*e, (Py_ssize_t)(p-*e));
|
||||
#endif
|
||||
if (k == NULL) {
|
||||
Py_DECREF(d);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue