diff options
Diffstat (limited to 'gobject')
| -rw-r--r-- | gobject/pygi-external.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gobject/pygi-external.h b/gobject/pygi-external.h index aec2f25..02e6656 100644 --- a/gobject/pygi-external.h +++ b/gobject/pygi-external.h @@ -39,7 +39,7 @@ _pygi_import (void) Py_DECREF(module); Py_DECREF(api); PyErr_Format(PyExc_TypeError, "gi._API must be cobject, not %s", - api->ob_type->tp_name); + Py_TYPE(api)->tp_name); return -1; } |
