mirror of
https://github.com/python/cpython.git
synced 2025-12-15 21:44:50 +00:00
Added the const qualifier to char* variables that refer to readonly internal
UTF-8 represenatation of Unicode objects.
This commit is contained in:
parent
a98c4a984b
commit
85b0f5beb1
29 changed files with 60 additions and 61 deletions
|
|
@ -2491,7 +2491,8 @@ PyObject *
|
|||
PyLong_FromUnicodeObject(PyObject *u, int base)
|
||||
{
|
||||
PyObject *result, *asciidig;
|
||||
char *buffer, *end = NULL;
|
||||
const char *buffer;
|
||||
char *end = NULL;
|
||||
Py_ssize_t buflen;
|
||||
|
||||
asciidig = _PyUnicode_TransformDecimalAndSpaceToASCII(u);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue