diff --git a/examples/pybullet/pybullet.c b/examples/pybullet/pybullet.c index 637899e6c..aba9c69c2 100644 --- a/examples/pybullet/pybullet.c +++ b/examples/pybullet/pybullet.c @@ -4583,7 +4583,7 @@ static PyObject* pybullet_changeTexture(PyObject* self, PyObject* args, PyObject PyObject* item; int i; int numPixels = width*height; - unsigned char* pixelBuffer = (char*) malloc (numPixels*3); + unsigned char* pixelBuffer = (unsigned char*) malloc (numPixels*3); if (PyList_Check(seqPixels)) { for (i=0;i