mirror of
https://github.com/python/cpython.git
synced 2025-08-22 17:55:18 +00:00
bpo-39943: Add the const qualifier to pointers on non-mutable PyBytes data. (GH-19472)
This commit is contained in:
parent
3e0dd3730b
commit
8f87eefe7f
20 changed files with 38 additions and 37 deletions
|
@ -1452,7 +1452,7 @@ _Py_fopen_obj(PyObject *path, const char *mode)
|
|||
&& errno == EINTR && !(async_err = PyErr_CheckSignals()));
|
||||
#else
|
||||
PyObject *bytes;
|
||||
char *path_bytes;
|
||||
const char *path_bytes;
|
||||
|
||||
assert(PyGILState_Check());
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue