Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Tiago Peixoto
graph-tool
Commits
802a82dd
Commit
802a82dd
authored
Oct 07, 2015
by
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
Changes
1
Show whitespace changes
Inline
Side-by-side
src/graph/graph_python_interface.hh
View file @
802a82dd
...
...
@@ -496,7 +496,7 @@ public:
boost
::
python
::
object
get_array_dispatch
(
size_t
size
,
boost
::
mpl
::
bool_
<
false
>
)
{
_pmap
.
res
erv
e
(
size
);
_pmap
.
res
iz
e
(
size
);
return
wrap_vector_not_owned
(
_pmap
.
get_storage
());
}
...
...
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