Needed to cast to a PyObject*
authorCampbell Barton <ideasman42@gmail.com>
Thu, 28 May 2009 10:31:56 +0000 (10:31 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Thu, 28 May 2009 10:31:56 +0000 (10:31 +0000)
source/blender/python/intern/bpy_rna.c

index 6080a2056a0f2fa2733ffb08cf1849904743ff5c..c1778faa1cdb87a024ef6a1f63cc3b24f37f84d2 100644 (file)
@@ -1370,7 +1370,7 @@ static void pyrna_subtype_set_rna(PyObject *newclass, StructRNA *srna)
        if (RNA_struct_py_type_get(srna))
                PyObSpit("RNA WAS SET - ", RNA_struct_py_type_get(srna));
        
-       Py_XDECREF(RNA_struct_py_type_get(srna));
+       Py_XDECREF(((PyObject *)RNA_struct_py_type_get(srna)));
        
        RNA_struct_py_type_set(srna, (void *)newclass); /* Store for later use */