From 0b249361c243e27430838ee188dd08d9ff0e4cf4 Mon Sep 17 00:00:00 2001 From: erwincoumans Date: Tue, 21 Jun 2016 09:01:27 -0700 Subject: [PATCH] fix a c99 issue in pybullet --- examples/pybullet/pybullet.c | 21 ++------------------- 1 file changed, 2 insertions(+), 19 deletions(-) diff --git a/examples/pybullet/pybullet.c b/examples/pybullet/pybullet.c index 3731f4c4d..9235f3e5a 100644 --- a/examples/pybullet/pybullet.c +++ b/examples/pybullet/pybullet.c @@ -302,6 +302,7 @@ static PyObject* pybullet_setJointControl(PyObject* self, PyObject* args) len = PySequence_Size(targetValues); numJoints = b3GetNumJoints(sm,bodyIndex); b3SharedMemoryCommandHandle commandHandle; + int qIndex; if (len!=numJoints) { @@ -321,7 +322,7 @@ static PyObject* pybullet_setJointControl(PyObject* self, PyObject* args) commandHandle = b3JointControlCommandInit(sm, bodyIndex,controlMode); - for (int qIndex=0;qIndex