Update pybullet.c

fix compile issue
This commit is contained in:
erwincoumans 2017-09-24 09:16:54 -07:00 committed by GitHub
parent 1727e47beb
commit b1d6f58981

View File

@ -7036,10 +7036,12 @@ static PyObject* pybullet_calculateJacobian(PyObject* self, PyObject* args, PyOb
angularJacobian);
if (linearJacobian)
{
int r;
PyObject* pymat = PyTuple_New(3);
for (int r = 0; r < 3; ++r) {
for (r = 0; r < 3; ++r) {
int c;
PyObject* pyrow = PyTuple_New(dofCount);
for (int c = 0; c < dofCount; ++c) {
for (c = 0; c < dofCount; ++c) {
int element = r * dofCount + c;
PyTuple_SetItem(pyrow, c,
PyFloat_FromDouble(linearJacobian[element]));
@ -7050,10 +7052,12 @@ static PyObject* pybullet_calculateJacobian(PyObject* self, PyObject* args, PyOb
}
if (angularJacobian)
{
int r;
PyObject* pymat = PyTuple_New(3);
for (int r = 0; r < 3; ++r) {
for (r = 0; r < 3; ++r) {
int c;
PyObject* pyrow = PyTuple_New(dofCount);
for (int c = 0; c < dofCount; ++c) {
for (c = 0; c < dofCount; ++c) {
int element = r * dofCount + c;
PyTuple_SetItem(pyrow, c,
PyFloat_FromDouble(linearJacobian[element]));