mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
Add the const qualifier to "char *" variables that refer to literal strings. (#4370)
This commit is contained in:
parent
e184cfd7bf
commit
e2f92de6a9
23 changed files with 46 additions and 41 deletions
|
@ -2413,7 +2413,7 @@ test_with_docstring(PyObject *self)
|
|||
static PyObject *
|
||||
test_string_to_double(PyObject *self) {
|
||||
double result;
|
||||
char *msg;
|
||||
const char *msg;
|
||||
|
||||
#define CHECK_STRING(STR, expected) \
|
||||
result = PyOS_string_to_double(STR, NULL, NULL); \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue