mirror of
https://github.com/python/cpython.git
synced 2025-09-10 18:58:35 +00:00
Issue #1772673: The type of char*
arguments now changed to const char*
.
This commit is contained in:
parent
80ab13067e
commit
c679227e31
39 changed files with 148 additions and 137 deletions
|
@ -1466,15 +1466,15 @@ PyMarshal_ReadObjectFromFile(FILE *fp)
|
|||
}
|
||||
|
||||
PyObject *
|
||||
PyMarshal_ReadObjectFromString(char *str, Py_ssize_t len)
|
||||
PyMarshal_ReadObjectFromString(const char *str, Py_ssize_t len)
|
||||
{
|
||||
RFILE rf;
|
||||
PyObject *result;
|
||||
rf.fp = NULL;
|
||||
rf.readable = NULL;
|
||||
rf.current_filename = NULL;
|
||||
rf.ptr = str;
|
||||
rf.end = str + len;
|
||||
rf.ptr = (char *)str;
|
||||
rf.end = (char *)str + len;
|
||||
rf.buf = NULL;
|
||||
rf.depth = 0;
|
||||
rf.refs = PyList_New(0);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue