Commit 92b2f452 by Wenzel Jakob

fix regression in stl.h

parent 2983d5e1
...@@ -77,7 +77,7 @@ public: ...@@ -77,7 +77,7 @@ public:
pybind11::set s; pybind11::set s;
for (auto const &value: src) { for (auto const &value: src) {
object value_ = object(key_conv::cast(value, policy, parent), false); object value_ = object(key_conv::cast(value, policy, parent), false);
if (!value_ || !s.add(value)) if (!value_ || !s.add(value_))
return handle(); return handle();
} }
return s.release(); return s.release();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment