[PATCH 04/18] test/input: Fix double-aligned test in dix_valuator_alloc() on m68k
Geert Uytterhoeven
geert at linux-m68k.org
Wed Mar 27 06:20:37 PDT 2013
On m68k, doubles are not 64-bit aligned, just like on i386 and sh.
Signed-off-by: Geert Uytterhoeven <geert at linux-m68k.org>
---
test/input.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/test/input.c b/test/input.c
index 90ab9ae..e2c8f4d 100644
--- a/test/input.c
+++ b/test/input.c
@@ -1354,7 +1354,7 @@ dix_valuator_alloc(void)
assert(v);
assert(v->numAxes == num_axes);
-#if !defined(__i386__) && !defined(__sh__)
+#if !defined(__i386__) && !defined(__mc68000__) && !defined(__sh__)
/* must be double-aligned on 64 bit */
assert(((void *) v->axisVal - (void *) v) % sizeof(double) == 0);
assert(((void *) v->axes - (void *) v) % sizeof(double) == 0);
--
1.7.0.4
More information about the xorg-devel
mailing list