From f87c3ea72fbf625b7a4ad39a6b2ac19bc94981d5 Mon Sep 17 00:00:00 2001 From: Christophe Geuzaine <cgeuzaine@ulg.ac.be> Date: Thu, 27 Aug 2009 17:26:02 +0000 Subject: [PATCH] fuck the abs() stuff is killing me --- contrib/DiscreteIntegration/DILevelset.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/contrib/DiscreteIntegration/DILevelset.h b/contrib/DiscreteIntegration/DILevelset.h index 4ce2cb4713..b2fd31688d 100644 --- a/contrib/DiscreteIntegration/DILevelset.h +++ b/contrib/DiscreteIntegration/DILevelset.h @@ -3,6 +3,7 @@ #include <math.h> #include <stdio.h> +#include <stdlib.h> // for abs() #include <vector> // PRIMITIVE LEVELSET @@ -78,7 +79,7 @@ public: gLevelsetPrimitive(int &tag) { if (tag < 1) { printf("Tag of the levelset (%d) must be greater than 0.\n", tag); - tag = std::abs(tag); + tag = abs(tag); } tag_ = tag++; } -- GitLab