Cleanup: warning
authorCampbell Barton <ideasman42@gmail.com>
Wed, 27 Sep 2017 16:04:58 +0000 (02:04 +1000)
committerCampbell Barton <ideasman42@gmail.com>
Wed, 27 Sep 2017 16:04:58 +0000 (02:04 +1000)
source/blender/python/generic/bgl.c

index 79d01d25e1745ae37f4f097c86c176e0b3caf54d..45087241d9bcd03d95ecfa28a7d388e93a9baa90 100644 (file)
@@ -838,8 +838,8 @@ static PyObject *Buffer_item(Buffer *self, int i)
                        offset *= self->dimensions[j];
                }
 
-               return BGL_MakeBuffer_FromData(
-                       self, self->type,
+               return (PyObject *)BGL_MakeBuffer_FromData(
+                       (PyObject *)self, self->type,
                        self->ndimensions - 1,
                        self->dimensions + 1,
                        self->buf.asbyte + offset);