From 8c5aa9d4df029a3901a311be6bc6cc4a6fbb7b7a Mon Sep 17 00:00:00 2001 From: adam Date: Mon, 25 May 2009 14:56:04 +0000 Subject: [PATCH] windows port --- src/MEDCoupling/MEDCouplingPointSet.cxx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/MEDCoupling/MEDCouplingPointSet.cxx b/src/MEDCoupling/MEDCouplingPointSet.cxx index d4b975eab..3a2876ae7 100644 --- a/src/MEDCoupling/MEDCouplingPointSet.cxx +++ b/src/MEDCoupling/MEDCouplingPointSet.cxx @@ -234,7 +234,7 @@ void MEDCouplingPointSet::unserialization(const std::vector& tinyInfo, Data // ============================================= bool MEDCouplingPointSet::intersectsBoundingBox(const double* bb1, const double* bb2, int dim, double eps) { - double bbtemp[2*dim]; + double* bbtemp = new double[2*dim]; double deltamax=0.0; for (int i=0; i< dim; i++) @@ -256,8 +256,12 @@ bool MEDCouplingPointSet::intersectsBoundingBox(const double* bb1, const double* bool intersects = (bbtemp[idim*2]