Author: jmb
Date: Fri Jan 23 19:01:27 2009
New Revision: 6215
URL: http://source.netsurf-browser.org?rev=6215&view=rev
Log:
Fixup ABS(), as per number.c
Modified:
trunk/libcss/test/dump.h
Modified: trunk/libcss/test/dump.h
URL:
http://source.netsurf-browser.org/trunk/libcss/test/dump.h?rev=6215&r1=6214&r2=6215&view=diff
==============================================================================
--- trunk/libcss/test/dump.h (original)
+++ trunk/libcss/test/dump.h Fri Jan 23 19:01:27 2009
@@ -321,7 +321,7 @@
static void dump_fixed(fixed f, char **ptr)
{
-#define ABS(x) ((x) < 0 ? -(x) : (x))
+#define ABS(x) (uint32_t)((x) < 0 ? -(x) : (x))
uint32_t uintpart = FIXTOINT(ABS(f));
/* + 500 to ensure round to nearest (division will truncate) */
uint32_t fracpart = ((ABS(f) & 0x3ff) * 1000 + 500) / (1 << 10);
_______________________________________________
netsurf-commits mailing list
[email protected]
http://vlists.pepperfish.net/cgi-bin/mailman/listinfo/netsurf-commits-netsurf-browser.org