mirror of
https://github.com/cosmo-sims/MUSIC.git
synced 2024-09-19 17:03:46 +02:00
fix potential segfault related to STL in convex_hull.hh
This commit is contained in:
parent
60d2aede0f
commit
3c67f672d3
1 changed files with 4 additions and 0 deletions
|
@ -273,6 +273,10 @@ struct convex_hull{
|
|||
{
|
||||
faceidx_L_.reserve(npoints_*3);
|
||||
faceidx_U_.reserve(npoints_*3);
|
||||
normals_L_.reserve(npoints_*3);
|
||||
normals_U_.reserve(npoints_*3);
|
||||
x0_L_.reserve(npoints_*3);
|
||||
x0_U_.reserve(npoints_*3);
|
||||
|
||||
size_t i,j,l;
|
||||
for( i=0, l=1; l<npoints_; ++l )
|
||||
|
|
Loading…
Reference in a new issue