| Message ID | 20110520040547.GA12434@barra.bne.redhat.com |
|---|---|
| State | Deferred, archived |
| Headers | show |
diff --git a/test/input.c b/test/input.c index ac37d67..837ce49 100644 --- a/test/input.c +++ b/test/input.c @@ -1223,8 +1223,11 @@ static void dix_valuator_alloc(void) assert(v); assert(v->numAxes == num_axes); +#ifndef __i386__ + /* i386 doesn't need alignment on sizeof(double) */ assert(((void*)v->axisVal - (void*)v) % sizeof(double) == 0); assert(((void*)v->axes - (void*)v) % sizeof(double) == 0); +#endif num_axes ++; }
i386 is one of the few architectures that doesn't need double alignment. X.Org Bug 36986 <http://bugs.freedesktop.org/show_bug.cgi?id=36986> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> --- Changes to v1: - ifdef _LP64 ? ifndef i386 test/input.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-)