diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2016-11-21 08:25:54 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2016-11-21 08:25:54 (GMT) |
commit | b57d9eac41125bc4a53a1ba9987ba776b4cc6680 (patch) | |
tree | 7dbacd56c88ba46115dbe2865c4657d9ee3702eb /Objects/moduleobject.c | |
parent | 1fb1c998b2c5e0b97aa909688793e405dfea08f0 (diff) | |
download | cpython-b57d9eac41125bc4a53a1ba9987ba776b4cc6680.zip cpython-b57d9eac41125bc4a53a1ba9987ba776b4cc6680.tar.gz cpython-b57d9eac41125bc4a53a1ba9987ba776b4cc6680.tar.bz2 |
Issue #28748: Private variable _Py_PackageContext is now of type "const char *"
rather of "char *".
Diffstat (limited to 'Objects/moduleobject.c')
-rw-r--r-- | Objects/moduleobject.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/moduleobject.c b/Objects/moduleobject.c index 701bcb1..350f3bf 100644 --- a/Objects/moduleobject.c +++ b/Objects/moduleobject.c @@ -188,7 +188,7 @@ PyModule_Create2(struct PyModuleDef* module, int module_api_version) (if the name actually matches). */ if (_Py_PackageContext != NULL) { - char *p = strrchr(_Py_PackageContext, '.'); + const char *p = strrchr(_Py_PackageContext, '.'); if (p != NULL && strcmp(module->m_name, p+1) == 0) { name = _Py_PackageContext; _Py_PackageContext = NULL; |