From 7e0ca070e0d9d20b1db88a248a38ed4b52b0906e Mon Sep 17 00:00:00 2001 From: Erwin Coumans Date: Wed, 13 Sep 2017 16:08:30 -0700 Subject: [PATCH] fix return values in pybullet to be Pythonic. --- examples/pybullet/pybullet.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/pybullet/pybullet.c b/examples/pybullet/pybullet.c index 82249434a..4cad53bd7 100644 --- a/examples/pybullet/pybullet.c +++ b/examples/pybullet/pybullet.c @@ -448,7 +448,7 @@ static PyObject* pybullet_connectPhysicsServer(PyObject* self, PyObject* args, P sPhysicsClients1[freeIndex] = 0; sPhysicsClientsGUI[freeIndex] = 0; sNumPhysicsClients++; - return -1; + return PyInt_FromLong(-1); } } }