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 <[email protected]> --- Changes to v1: - ifdef _LP64 → ifndef i386 test/input.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) 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 ++; } -- 1.7.4.4 _______________________________________________ [email protected]: X.Org development Archives: http://lists.x.org/archives/xorg-devel Info: http://lists.x.org/mailman/listinfo/xorg-devel
