Skip to content

Commit 8627f64

Browse files
committed
Replace PyObject_Call* with PyObject_Call*ObjArgs.
Also, remove extra `(char*)` casts.
1 parent 8e7aaff commit 8627f64

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/_ttconv.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ class PythonFileWriter : public TTStreamWriter
4949
if (decoded == NULL) {
5050
throw py::exception();
5151
}
52-
result = PyObject_CallFunction(_write_method, (char *)"O", decoded);
52+
result = PyObject_CallFunctionObjArgs(_write_method, decoded, NULL);
5353
Py_DECREF(decoded);
5454
if (!result) {
5555
throw py::exception();

0 commit comments

Comments
 (0)