[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [19521] trunk/blender/source/gameengine/ Ketsji: Some users could not build with python 2.5, hopefully this fixes it .

Campbell Barton ideasman42 at gmail.com
Fri Apr 3 17:08:38 CEST 2009


Revision: 19521
          http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=19521
Author:   campbellbarton
Date:     2009-04-03 17:08:38 +0200 (Fri, 03 Apr 2009)

Log Message:
-----------
Some users could not build with python 2.5, hopefully this fixes it.

Modified Paths:
--------------
    trunk/blender/source/gameengine/Ketsji/KX_GameObject.cpp
    trunk/blender/source/gameengine/Ketsji/KX_GameObject.h

Modified: trunk/blender/source/gameengine/Ketsji/KX_GameObject.cpp
===================================================================
--- trunk/blender/source/gameengine/Ketsji/KX_GameObject.cpp	2009-04-03 14:54:29 UTC (rev 19520)
+++ trunk/blender/source/gameengine/Ketsji/KX_GameObject.cpp	2009-04-03 15:08:38 UTC (rev 19521)
@@ -1104,7 +1104,7 @@
 }
 
 
-int KX_GameObject::Map_Len(PyObject* self_v)
+Py_ssize_t KX_GameObject::Map_Len(PyObject* self_v)
 {
 	return (static_cast<KX_GameObject*>(self_v))->GetPropertyCount();
 }
@@ -1173,7 +1173,7 @@
 
 
 PyMappingMethods KX_GameObject::Mapping = {
-	(inquiry)KX_GameObject::Map_Len, 			/*inquiry mp_length */
+	(lenfunc)KX_GameObject::Map_Len, 			/*inquiry mp_length */
 	(binaryfunc)KX_GameObject::Map_GetItem,		/*binaryfunc mp_subscript */
 	(objobjargproc)KX_GameObject::Map_SetItem,	/*objobjargproc mp_ass_subscript */
 };

Modified: trunk/blender/source/gameengine/Ketsji/KX_GameObject.h
===================================================================
--- trunk/blender/source/gameengine/Ketsji/KX_GameObject.h	2009-04-03 14:54:29 UTC (rev 19520)
+++ trunk/blender/source/gameengine/Ketsji/KX_GameObject.h	2009-04-03 15:08:38 UTC (rev 19521)
@@ -826,7 +826,7 @@
 	static PyObject*	pyattr_get_dir_dict(void *self_v, const KX_PYATTRIBUTE_DEF *attrdef);
 	
 	/* getitem/setitem */
-	static int					Map_Len(PyObject* self);
+	static Py_ssize_t			Map_Len(PyObject* self);
 	static PyMappingMethods	Mapping;
 	static PyObject*			Map_GetItem(PyObject *self_v, PyObject *item);
 	static int					Map_SetItem(PyObject *self_v, PyObject *key, PyObject *val);





More information about the Bf-blender-cvs mailing list