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