Cleanup: remove redundant double parenthesis
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user