We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Py_ssize_t
PyBytes_FromStringAndSize
1 parent 5b52636 commit 5989095Copy full SHA for 5989095
1 file changed
Modules/posixmodule.c
@@ -1815,7 +1815,7 @@ convertenviron(void)
1815
#ifdef MS_WINDOWS
1816
k = PyUnicode_FromWideChar(*e, (Py_ssize_t)(p-*e));
1817
#else
1818
- k = PyBytes_FromStringAndSize(*e, (int)(p-*e));
+ k = PyBytes_FromStringAndSize(*e, (Py_ssize_t)(p-*e));
1819
#endif
1820
if (k == NULL) {
1821
Py_DECREF(d);
0 commit comments