From ab9ef0fa5ffbbc48e4eb988c85cc6e07c6a14db1 Mon Sep 17 00:00:00 2001 From: Jeff Johnston Date: Fri, 19 Jun 2009 18:15:35 +0000 Subject: 2009-06-19 Joel Sherrill * libc/sys/rtems/machine/param.h: Change ALIGNBYTES so it can point to an aligned structure or double. --- newlib/libc/sys/rtems/machine/param.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'newlib/libc') diff --git a/newlib/libc/sys/rtems/machine/param.h b/newlib/libc/sys/rtems/machine/param.h index fd244431d..e4dd271fb 100644 --- a/newlib/libc/sys/rtems/machine/param.h +++ b/newlib/libc/sys/rtems/machine/param.h @@ -19,7 +19,7 @@ * for all data types (int, long, ...). The result is unsigned int * and must be cast to any desired pointer type. */ -#define ALIGNBYTES (sizeof(int) - 1) +#define ALIGNBYTES (sizeof(double) - 1) #define ALIGN(p) (((unsigned)(p) + ALIGNBYTES) & ~ALIGNBYTES) #define PAGE_SHIFT 12 /* LOG2(PAGE_SIZE) */ -- cgit v1.2.3