From 6c98859b7740343cc75be7e4c568a686dfd20d0c Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Thu, 28 Sep 2017 02:04:58 +1000 Subject: Cleanup: warning --- source/blender/python/generic/bgl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/blender/python/generic/bgl.c b/source/blender/python/generic/bgl.c index 79d01d25e17..45087241d9b 100644 --- a/source/blender/python/generic/bgl.c +++ b/source/blender/python/generic/bgl.c @@ -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); -- cgit v1.2.3