diff options
Diffstat (limited to 'source/blender/python/generic/bgl.c')
-rw-r--r-- | source/blender/python/generic/bgl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/python/generic/bgl.c b/source/blender/python/generic/bgl.c index 36ab1e86d92..fd5f2e77672 100644 --- a/source/blender/python/generic/bgl.c +++ b/source/blender/python/generic/bgl.c @@ -732,7 +732,7 @@ static PyObject *Buffer_new(PyTypeObject *UNUSED(type), PyObject *args, PyObject if (PyLong_Check(length_ob)) { ndimensions = 1; - if (((dimensions[0] = PyLong_AsLong(length_ob)) < 1)) { + if ((dimensions[0] = PyLong_AsLong(length_ob)) < 1) { PyErr_SetString(PyExc_AttributeError, "dimensions must be between 1 and " STRINGIFY(MAX_DIMENSIONS)); return NULL; |