From: Mark Cave-Ayland Date: Tue, 22 Sep 2009 13:38:17 +0000 (+0000) Subject: Commit fix to LW_ABS() macro as discovered by Nicklas Aven. X-Git-Tag: 1.5.0b1~481 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1f6d0724d4b94a0db56badca6c275cc3327a1a30;p=postgis Commit fix to LW_ABS() macro as discovered by Nicklas Aven. git-svn-id: http://svn.osgeo.org/postgis/trunk@4527 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/liblwgeom/liblwgeom.h b/liblwgeom/liblwgeom.h index 1c9f84a03..b421cca99 100644 --- a/liblwgeom/liblwgeom.h +++ b/liblwgeom/liblwgeom.h @@ -1184,7 +1184,7 @@ extern float nextafterf_custom(float x, float y); #define LW_MAX(a,b) ((a) > (b) ? (a) : (b)) #define LW_MIN(a,b) ((a) <= (b) ? (a) : (b)) -#define LW_ABS(a) ((a) < (0) ? (-a) : (a)) +#define LW_ABS(a) ((a) < (0) ? -(a) : (a)) /* general utilities */