Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
gaoqiong
pybind11
Commits
cd7eacc5
Commit
cd7eacc5
authored
Jan 04, 2017
by
Wenzel Jakob
Browse files
fix segfault in test suite due to typo (fixes #586)
parent
0e49c022
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
tests/test_pickling.cpp
tests/test_pickling.cpp
+1
-1
No files found.
tests/test_pickling.cpp
View file @
cd7eacc5
...
@@ -71,7 +71,7 @@ test_initializer pickling([](py::module &m) {
...
@@ -71,7 +71,7 @@ test_initializer pickling([](py::module &m) {
throw
std
::
runtime_error
(
"Invalid state!"
);
throw
std
::
runtime_error
(
"Invalid state!"
);
/* Cast and construct */
/* Cast and construct */
auto
&
p
=
self
.
cast
<
PickleableWithDict
&>
();
auto
&
p
=
self
.
cast
<
PickleableWithDict
&>
();
new
(
&
p
)
Pickleable
(
t
[
0
].
cast
<
std
::
string
>
());
new
(
&
p
)
Pickleable
WithDict
(
t
[
0
].
cast
<
std
::
string
>
());
/* Assign C++ state */
/* Assign C++ state */
p
.
extra
=
t
[
1
].
cast
<
int
>
();
p
.
extra
=
t
[
1
].
cast
<
int
>
();
...
...
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