From e4ebeefab3791ebf665710fd5fbf3aa1313bc118 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Houz=C3=A9fa=20Abbasbhay?= Date: Mon, 1 Dec 2014 12:25:32 +0100 Subject: [PATCH] Python 3: PyObject_HEAD_INIT(NULL) -> PyVarObject_HEAD_INIT(NULL, 0) (to play better with C strict aliasing rules - see PEP 3123) --- bindings/python/wrapper_top.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bindings/python/wrapper_top.c b/bindings/python/wrapper_top.c index 2cc845ec..53083da4 100644 --- a/bindings/python/wrapper_top.c +++ b/bindings/python/wrapper_top.c @@ -575,7 +575,7 @@ static PyGetSetDef PyGObjectPtr_getseters[] = { static PyTypeObject PyGObjectPtrType = { - PyObject_HEAD_INIT(NULL) + PyVarObject_HEAD_INIT(NULL, 0) 0, /* ob_size */ "_lasso.PyGObjectPtr", /* tp_name */ sizeof(PyGObjectPtr), /* tp_basicsize */