Commit 5616c6d6 authored by Neal Norwitz's avatar Neal Norwitz

Fix a couple of warnings

parent 3c814d25
......@@ -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)) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment