Cleanup: remove redundant double parenthesis
This commit is contained in:
@@ -424,7 +424,7 @@ static PyObject *app_translations_contexts_make(void)
|
||||
}
|
||||
|
||||
#define SetObjString(item) \
|
||||
PyStructSequence_SET_ITEM(translations_contexts, pos++, PyUnicode_FromString((item)))
|
||||
PyStructSequence_SET_ITEM(translations_contexts, pos++, PyUnicode_FromString(item))
|
||||
#define SetObjNone() \
|
||||
PyStructSequence_SET_ITEM(translations_contexts, pos++, Py_INCREF_RET(Py_None))
|
||||
|
||||
|
||||
@@ -225,7 +225,7 @@ static void bpy_pydriver_namespace_update_depsgraph(struct Depsgraph *depsgraph)
|
||||
}
|
||||
|
||||
if ((g_pydriver_state_prev.depsgraph == NULL) ||
|
||||
((depsgraph != g_pydriver_state_prev.depsgraph->ptr.data))) {
|
||||
(depsgraph != g_pydriver_state_prev.depsgraph->ptr.data)) {
|
||||
PyObject *item = bpy_pydriver_depsgraph_as_pyobject(depsgraph);
|
||||
PyDict_SetItem(bpy_pydriver_Dict, bpy_intern_str_depsgraph, item);
|
||||
Py_DECREF(item);
|
||||
|
||||
@@ -394,7 +394,7 @@ static int bpy_prop_array_length_parse(PyObject *o, void *p)
|
||||
|
||||
if (PyLong_CheckExact(o)) {
|
||||
int size;
|
||||
if (((size = PyLong_AsLong(o)) == -1)) {
|
||||
if ((size = PyLong_AsLong(o)) == -1) {
|
||||
PyErr_Format(
|
||||
PyExc_ValueError, "expected number or sequence of numbers, got %s", Py_TYPE(o)->tp_name);
|
||||
return 0;
|
||||
@@ -427,7 +427,7 @@ static int bpy_prop_array_length_parse(PyObject *o, void *p)
|
||||
PyObject **seq_items = PySequence_Fast_ITEMS(seq_fast);
|
||||
for (int i = 0; i < seq_len; i++) {
|
||||
int size;
|
||||
if (((size = PyLong_AsLong(seq_items[i])) == -1)) {
|
||||
if ((size = PyLong_AsLong(seq_items[i])) == -1) {
|
||||
Py_DECREF(seq_fast);
|
||||
PyErr_Format(PyExc_ValueError,
|
||||
"expected number in sequence, got %s at index %d",
|
||||
|
||||
Reference in New Issue
Block a user