From 04823258056d7092215aaf75fb1b54741b0f4e4e Mon Sep 17 00:00:00 2001 From: Brecht Van Lommel Date: Tue, 7 Apr 2009 15:20:12 +0000 Subject: RNA: fix for compile error on msvc, and a warning fix. --- source/blender/python/intern/bpy_rna.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'source') diff --git a/source/blender/python/intern/bpy_rna.c b/source/blender/python/intern/bpy_rna.c index b30616ba035..e0202076c4f 100644 --- a/source/blender/python/intern/bpy_rna.c +++ b/source/blender/python/intern/bpy_rna.c @@ -628,7 +628,7 @@ static int pyrna_prop_assign_subscript( BPy_PropertyRNA * self, PyObject *key, P static PyMappingMethods pyrna_prop_as_mapping = { - ( inquiry ) pyrna_prop_len, /* mp_length */ + ( lenfunc ) pyrna_prop_len, /* mp_length */ ( binaryfunc ) pyrna_prop_subscript, /* mp_subscript */ ( objobjargproc ) pyrna_prop_assign_subscript, /* mp_ass_subscript */ }; @@ -1819,11 +1819,13 @@ static PyObject *pyrna_basetype_dir(BPy_BaseTypeRNA *self) return list; } -PyTypeObject pyrna_basetype_Type = {}; +PyTypeObject pyrna_basetype_Type; PyObject *BPY_rna_types(void) { BPy_BaseTypeRNA *self; + + memset(&pyrna_basetype_Type, 0, sizeof(pyrna_basetype_Type)); pyrna_basetype_Type.tp_name = "RNA_Types"; pyrna_basetype_Type.tp_basicsize = sizeof( BPy_BaseTypeRNA ); pyrna_basetype_Type.tp_getattro = ( getattrofunc )pyrna_basetype_getattro; -- cgit v1.2.3