[Bf-blender-cvs] [6c98859b774] master: Cleanup: warning
Campbell Barton
noreply at git.blender.org
Wed Sep 27 17:52:31 CEST 2017
Commit: 6c98859b7740343cc75be7e4c568a686dfd20d0c
Author: Campbell Barton
Date: Thu Sep 28 02:04:58 2017 +1000
Branches: master
https://developer.blender.org/rB6c98859b7740343cc75be7e4c568a686dfd20d0c
Cleanup: warning
===================================================================
M source/blender/python/generic/bgl.c
===================================================================
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);
More information about the Bf-blender-cvs
mailing list