Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
gaoqiong
pybind11
Commits
367d723a
Commit
367d723a
authored
Dec 15, 2017
by
Jason Rhinelander
Browse files
Simplify arg copying
parent
03874e37
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
include/pybind11/pybind11.h
include/pybind11/pybind11.h
+1
-2
No files found.
include/pybind11/pybind11.h
View file @
367d723a
...
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment