Stefan Reinauer (stefan.reinauer@coreboot.org) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/820
-gerrit
commit 4fd1c6e96c8aeb1ce49aaae053f72726e4c410e8 Author: Stefan Reinauer reinauer@chromium.org Date: Fri Mar 30 13:00:46 2012 -0700
Align: Make sure 1 is treated as unsigned long instead of int
Change-Id: Id79daaaa35c4d412c8c1f621a3638d129681d331 Signed-off-by: Stefan Reinauer reinauer@google.com --- src/include/stdlib.h | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/include/stdlib.h b/src/include/stdlib.h index 45420d7..5465c14 100644 --- a/src/include/stdlib.h +++ b/src/include/stdlib.h @@ -5,7 +5,7 @@
#define ARRAY_SIZE(a) (sizeof(a) / sizeof((a)[0]))
-#define ALIGN(x,a) __ALIGN_MASK(x,(typeof(x))(a)-1) +#define ALIGN(x,a) __ALIGN_MASK(x,(typeof(x))(a)-1UL) #define __ALIGN_MASK(x,mask) (((x)+(mask))&~(mask))
#define MIN(a,b) ((a) < (b) ? (a) : (b))