Simplify arg copying

This commit is contained in:
Jason Rhinelander 2017-12-15 13:21:52 -04:00
parent 03874e3738
commit 367d723a54

View File

@ -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);