Skip to content

Commit 34a5b91

Browse files
committed
Suppress warning
1 parent b118921 commit 34a5b91

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/pycall/pycall.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1262,7 +1262,7 @@ pycall_pyobject_to_ruby(PyObject *pyobj)
12621262
return pycall_pystring_to_ruby(pyobj);
12631263

12641264
Py_API(Py_IncRef)(pyobj);
1265-
Py_API(Py_IncRef)(pyobj->ob_type);
1265+
Py_API(Py_IncRef)((PyObject *)pyobj->ob_type);
12661266
cls = pycall_python_type_mapping_get_mapped_class(pycall_pytypeptr_new((PyObject *)pyobj->ob_type));
12671267
if (NIL_P(cls)) {
12681268
rb_warning("Currentry do not support to convert %s to Ruby object", Py_TYPE(pyobj)->tp_name);

0 commit comments

Comments
 (0)