Commit 802a82dd authored by Tiago Peixoto's avatar Tiago Peixoto
Browse files

Replace reserve() by resize() in PropertyMap.get_array()

This ensures that the array is always of the correct size.
parent 65e954ce
......@@ -496,7 +496,7 @@ public:
boost::python::object get_array_dispatch(size_t size, boost::mpl::bool_<false>)
{
_pmap.reserve(size);
_pmap.resize(size);
return wrap_vector_not_owned(_pmap.get_storage());
}
......
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