Cleanup: replace int with wmOperatorStatus

Follow up to adding wmOperatorStatus, these cases were missed as they
didn't cause compiler warnings.
This commit is contained in:
Campbell Barton
2025-03-21 08:34:21 +11:00
parent 10233e95dd
commit 2659ec12f5
4 changed files with 16 additions and 16 deletions

View File

@@ -132,7 +132,7 @@ static PyObject *pyop_call(PyObject * /*self*/, PyObject *args)
wmOperatorType *ot;
int error_val = 0;
PointerRNA ptr;
int operator_ret = OPERATOR_CANCELLED;
wmOperatorStatus operator_ret = OPERATOR_CANCELLED;
const char *opname;
const char *context_str = nullptr;
@@ -301,7 +301,7 @@ static PyObject *pyop_call(PyObject * /*self*/, PyObject *args)
BPY_modules_update();
/* return operator_ret as a bpy enum */
return pyrna_enum_bitfield_as_set(rna_enum_operator_return_items, operator_ret);
return pyrna_enum_bitfield_as_set(rna_enum_operator_return_items, int(operator_ret));
}
static PyObject *pyop_as_string(PyObject * /*self*/, PyObject *args)