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 PyUnicode data. (GH-19345)
This commit is contained in:
parent
7ec43a7309
commit
cd8295ff75
27 changed files with 250 additions and 221 deletions
|
@ -435,7 +435,7 @@ normalize_module(PyObject *filename)
|
|||
{
|
||||
PyObject *module;
|
||||
int kind;
|
||||
void *data;
|
||||
const void *data;
|
||||
Py_ssize_t len;
|
||||
|
||||
len = PyUnicode_GetLength(filename);
|
||||
|
@ -519,7 +519,7 @@ show_warning(PyObject *filename, int lineno, PyObject *text,
|
|||
/* Print " source_line\n" */
|
||||
if (sourceline) {
|
||||
int kind;
|
||||
void *data;
|
||||
const void *data;
|
||||
Py_ssize_t i, len;
|
||||
Py_UCS4 ch;
|
||||
PyObject *truncated;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue