From df07f2aaaa80db913e1f46ec46d69d2a7ba99a33 Mon Sep 17 00:00:00 2001 From: yunfeibai Date: Fri, 3 Feb 2017 14:44:25 -0800 Subject: [PATCH] minor fix --- examples/pybullet/pybullet.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/pybullet/pybullet.c b/examples/pybullet/pybullet.c index e600d0355..65cc7e108 100644 --- a/examples/pybullet/pybullet.c +++ b/examples/pybullet/pybullet.c @@ -4493,8 +4493,9 @@ static PyObject* pybullet_calculateInverseKinematics(PyObject* self, if (numJoints && (szJointDamping == numJoints)) { int szInBytes = sizeof(double) * numJoints; + int i; jointDamping = (double*)malloc(szInBytes); - for (int i = 0; i < numJoints; i++) + for (i = 0; i < numJoints; i++) { jointDamping[i] = pybullet_internalGetFloatFromSequence(jointDampingObj, i); }