]> granicus.if.org Git - postgis/commitdiff
Commit fix to LW_ABS() macro as discovered by Nicklas Aven.
authorMark Cave-Ayland <mark.cave-ayland@siriusit.co.uk>
Tue, 22 Sep 2009 13:38:17 +0000 (13:38 +0000)
committerMark Cave-Ayland <mark.cave-ayland@siriusit.co.uk>
Tue, 22 Sep 2009 13:38:17 +0000 (13:38 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@4527 b70326c6-7e19-0410-871a-916f4a2858ee

liblwgeom/liblwgeom.h

index 1c9f84a03f39226eca55bc4178acc3b38b46892a..b421cca9949b06113f0e7b99b9c287147d6de672 100644 (file)
@@ -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 */