Cleanup: redundant casts

This commit is contained in:
2017-10-04 16:44:45 +11:00
parent d3f0fa1277
commit 08f728a3e9
3 changed files with 10 additions and 7 deletions

View File

@@ -253,7 +253,7 @@ PyObject *bpy_text_reimport(PyObject *module, int *found)
if (module_file == NULL) {
return NULL;
}
filepath = (char *)_PyUnicode_AsString(module_file);
filepath = _PyUnicode_AsString(module_file);
Py_DECREF(module_file);
if (filepath == NULL) {
return NULL;