commit | cd7eacc584188d3ba93fe6e2a995c0a34e710bf5 | [log] [tgz] |
---|---|---|
author | Wenzel Jakob <wenzel.jakob@epfl.ch> | Wed Jan 04 09:01:59 2017 -0500 |
committer | Wenzel Jakob <wenzel.jakob@epfl.ch> | Wed Jan 04 15:05:20 2017 +0100 |
tree | be53fb38ef43fd9ad1388a4adc3410d29f3dfa67 | |
parent | 0e49c022130d412dd3a42277a1a0a3b3e1c0ce78 [diff] |
fix segfault in test suite due to typo (fixes #586)
diff --git a/tests/test_pickling.cpp b/tests/test_pickling.cpp index 87c623d..52b1dbc 100644 --- a/tests/test_pickling.cpp +++ b/tests/test_pickling.cpp
@@ -71,7 +71,7 @@ throw std::runtime_error("Invalid state!"); /* Cast and construct */ auto& p = self.cast<PickleableWithDict&>(); - new (&p) Pickleable(t[0].cast<std::string>()); + new (&p) PickleableWithDict(t[0].cast<std::string>()); /* Assign C++ state */ p.extra = t[1].cast<int>();