mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-24 14:15:11 +00:00
Simplify arg copying
This commit is contained in:
parent
155cc7c4d2
commit
0c7aec480a
@ -588,8 +588,7 @@ protected:
|
|||||||
size_t args_size = n_args_in - args_copied;
|
size_t args_size = n_args_in - args_copied;
|
||||||
extra_args = tuple(args_size);
|
extra_args = tuple(args_size);
|
||||||
for (size_t i = 0; i < args_size; ++i) {
|
for (size_t i = 0; i < args_size; ++i) {
|
||||||
handle item = PyTuple_GET_ITEM(args_in, args_copied + i);
|
extra_args[i] = PyTuple_GET_ITEM(args_in, args_copied + i);
|
||||||
extra_args[i] = reinterpret_borrow<object>(item);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
call.args.push_back(extra_args);
|
call.args.push_back(extra_args);
|
||||||
|
Loading…
Reference in New Issue
Block a user