mirror of
https://github.com/AdaCore/cpython.git
synced 2026-02-12 12:57:15 -08:00
Fix a couple of warnings
This commit is contained in:
@@ -266,7 +266,7 @@ getcodec(PyObject *self, PyObject *encoding)
|
||||
"encoding name must be a string.");
|
||||
return NULL;
|
||||
}
|
||||
enc = PyUnicode_AsString(encoding, NULL);
|
||||
enc = PyUnicode_AsString(encoding);
|
||||
if (enc == NULL)
|
||||
return NULL;
|
||||
|
||||
|
||||
@@ -2366,7 +2366,7 @@ PyImport_ReloadModule(PyObject *m)
|
||||
"reload() argument must be module");
|
||||
return NULL;
|
||||
}
|
||||
name = PyModule_GetName(m);
|
||||
name = (char*)PyModule_GetName(m);
|
||||
if (name == NULL)
|
||||
return NULL;
|
||||
if (m != PyDict_GetItemString(modules, name)) {
|
||||
|
||||
Reference in New Issue
Block a user