mirror of
https://github.com/python/cpython.git
synced 2025-11-02 19:12:55 +00:00
Fix a couple of warnings
This commit is contained in:
parent
3c814d2550
commit
5616c6d690
2 changed files with 2 additions and 2 deletions
|
|
@ -266,7 +266,7 @@ getcodec(PyObject *self, PyObject *encoding)
|
||||||
"encoding name must be a string.");
|
"encoding name must be a string.");
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
enc = PyUnicode_AsString(encoding, NULL);
|
enc = PyUnicode_AsString(encoding);
|
||||||
if (enc == NULL)
|
if (enc == NULL)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -2366,7 +2366,7 @@ PyImport_ReloadModule(PyObject *m)
|
||||||
"reload() argument must be module");
|
"reload() argument must be module");
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
name = PyModule_GetName(m);
|
name = (char*)PyModule_GetName(m);
|
||||||
if (name == NULL)
|
if (name == NULL)
|
||||||
return NULL;
|
return NULL;
|
||||||
if (m != PyDict_GetItemString(modules, name)) {
|
if (m != PyDict_GetItemString(modules, name)) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue