Cleanup: use std::min/max instead of MIN2/MAX2 macros

This commit is contained in:
Campbell Barton
2023-11-07 16:33:19 +11:00
parent 6297bbe931
commit 611930e5a8
130 changed files with 458 additions and 442 deletions

View File

@@ -3698,7 +3698,7 @@ static PyObject *MatrixAccess_slice(MatrixAccessObject *self, Py_ssize_t begin,
end = (matrix_access_len + 1) + end;
}
CLAMP(end, 0, matrix_access_len);
begin = MIN2(begin, end);
begin = std::min(begin, end);
tuple = PyTuple_New(end - begin);
for (count = begin; count < end; count++) {