1
0
Fork 0
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:
Dylan Nelson 2013-10-22 18:30:10 +00:00
parent 60d2aede0f
commit 3c67f672d3

View file

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