Cleanup: use PyC_AsArray_FAST function where possible

Oversight in 2453dc1b0e.
This commit is contained in:
Campbell Barton 2021-07-29 11:53:04 +10:00
parent bc0a7d3fae
commit fd0b2b8dfd
1 changed files with 2 additions and 1 deletions

View File

@ -228,7 +228,8 @@ static int PyC_AsArray_Multi_FAST_impl(void **array_p,
const int length = dims[0];
if (dims_len == 1) {
if (PyC_AsArray(*array_p, array_item_size, value_fast, length, type, error_prefix) == -1) {
if (PyC_AsArray_FAST(*array_p, array_item_size, value_fast, length, type, error_prefix) ==
-1) {
return -1;
}
*array_p = POINTER_OFFSET(*array_p, array_item_size * length);