Author: ArcRiley
Date: 2008-02-26 12:26:39 -0500 (Tue, 26 Feb 2008)
New Revision: 989

Modified:
   trunk/pysoy/src/bodies._bodies/Body.pxi
Log:
Ticket #934 :
  * silenced compiler warnings, was assigning const result to non-const


Modified: trunk/pysoy/src/bodies._bodies/Body.pxi
===================================================================
--- trunk/pysoy/src/bodies._bodies/Body.pxi     2008-02-26 06:06:52 UTC (rev 
988)
+++ trunk/pysoy/src/bodies._bodies/Body.pxi     2008-02-26 17:26:39 UTC (rev 
989)
@@ -271,10 +271,10 @@
       py.PyMem_Free(self._linearVel)
       py.PyMem_Free(self._angularVel)
     ode.dBodyGetMass(self._bodyID, &self._mass)
-    self._position   = ode.dBodyGetPosition  (self._bodyID)
-    self._quaternion = ode.dBodyGetQuaternion(self._bodyID)
-    self._linearVel  = ode.dBodyGetLinearVel (self._bodyID)
-    self._angularVel = ode.dBodyGetAngularVel(self._bodyID)
+    self._position   = <ode.dReal*> ode.dBodyGetPosition  (self._bodyID)
+    self._quaternion = <ode.dReal*> ode.dBodyGetQuaternion(self._bodyID)
+    self._linearVel  = <ode.dReal*> ode.dBodyGetLinearVel (self._bodyID)
+    self._angularVel = <ode.dReal*> ode.dBodyGetAngularVel(self._bodyID)
 
   cdef void _destroy(self) :
     cdef ode.dReal *real

_______________________________________________
PySoy-SVN mailing list
PySoy-SVN@pysoy.org
http://www.pysoy.org/mailman/listinfo/pysoy-svn

Reply via email to