fix regression in stl.h

This commit is contained in:
Wenzel Jakob 2016-01-18 21:00:25 +01:00
parent 2983d5e1de
commit 92b2f452f0

View File

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