2.5: warning fixes
[blender-staging.git] / source / blender / python / intern / bpy_rna.c
index f2c8cf05942865eb847eeaf492b3de6db5346b27..ac6934a6d55fb5b62d971d87f5eadb77dd17c01d 100644 (file)
@@ -2612,7 +2612,7 @@ PyObject *BPY_rna_props( void )
 
 static StructRNA *pyrna_struct_as_srna(PyObject *self)
 {
-       PyObject *py_srna= (BPy_StructRNA *)PyObject_GetAttrString(self, "__rna__");
+       PyObject *py_srna= (PyObject*)PyObject_GetAttrString(self, "__rna__");
 
        if(py_srna==NULL) {
                PyErr_SetString(PyExc_SystemError, "internal error, self had no __rna__ attribute, should never happen.");