mirror of
https://github.com/python/cpython.git
synced 2025-12-31 04:23:37 +00:00
[3.13] gh-143012: use Py_ssize_t cast for PyBytes_FromStringAndSize (GH-143013) (#143015)
gh-143012: use `Py_ssize_t` cast for `PyBytes_FromStringAndSize` (GH-143013)
(cherry picked from commit 5989095dfd)
Co-authored-by: AZero13 <gfunni234@gmail.com>
This commit is contained in:
parent
4b8c9f5a7b
commit
98d97d76a8
1 changed files with 1 additions and 1 deletions
|
|
@ -1698,7 +1698,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