From ece1ad2c0f0b06d397a6e20dcbb3d6d4a68b1c42 Mon Sep 17 00:00:00 2001 From: Michael Roitzsch Date: Sun, 10 Nov 2002 13:33:13 +0000 Subject: fix wrong abs macro; many thanks to James Slorach for finding this nasty, well-hidden bug CVS patchset: 3220 CVS date: 2002/11/10 13:33:13 --- src/xine-engine/metronom.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/xine-engine') diff --git a/src/xine-engine/metronom.c b/src/xine-engine/metronom.c index 71480e0d0..b8f750540 100644 --- a/src/xine-engine/metronom.c +++ b/src/xine-engine/metronom.c @@ -17,7 +17,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * - * $Id: metronom.c,v 1.98 2002/11/08 18:47:19 tmattern Exp $ + * $Id: metronom.c,v 1.99 2002/11/10 13:33:16 mroi Exp $ */ #ifdef HAVE_CONFIG_H @@ -51,7 +51,7 @@ /* redefine abs as macro to handle 64-bit diffs. i guess llabs may not be available everywhere */ -#define abs(x) ( (x<0) ? (-x) : (x) ) +#define abs(x) ( ((x)<0) ? -(x) : (x) ) /* #define LOG -- cgit v1.2.3