From 2e1c1f48b9ada382f99206789360f0d39f89bcb5 Mon Sep 17 00:00:00 2001 From: John Ehresman Date: Tue, 13 Apr 2010 12:16:24 -0400 Subject: Use _PyLong and Py_TYPE --- gobject/pygi-external.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gobject') 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; } -- cgit