summaryrefslogtreecommitdiff
path: root/Include
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2019-11-16 18:55:29 +0200
committerGitHub <noreply@github.com>2019-11-16 18:55:29 +0200
commitbd44a7ead9f7336d7bb45f186b2b6ca0300154f7 (patch)
treef53b1af72f9a828420c251c5ecc27e20d66eaffe /Include
parent5fd5cb8d85fab3393dd76c7f3de1cdeb8ecf7203 (diff)
downloadcpython-git-bd44a7ead9f7336d7bb45f186b2b6ca0300154f7.tar.gz
bpo-38650: Constify PyStructSequence_UnnamedField. (GH-17005)
Make it a constant and referring to a constant string.
Diffstat (limited to 'Include')
-rw-r--r--Include/structseq.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Include/structseq.h b/Include/structseq.h
index e5e5d5c573..8f51c89163 100644
--- a/Include/structseq.h
+++ b/Include/structseq.h
@@ -19,7 +19,7 @@ typedef struct PyStructSequence_Desc {
int n_in_sequence;
} PyStructSequence_Desc;
-extern char* PyStructSequence_UnnamedField;
+extern const char * const PyStructSequence_UnnamedField;
#ifndef Py_LIMITED_API
PyAPI_FUNC(void) PyStructSequence_InitType(PyTypeObject *type,