mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-24 05:54:08 +00:00
test/input: Fix double-aligned test in dix_valuator_alloc() on m68k
On m68k, doubles are not 64-bit aligned, just like on i386 and sh. Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
This commit is contained in:
@@ -1384,7 +1384,7 @@ dix_valuator_alloc(void)
|
||||
|
||||
assert(v);
|
||||
assert(v->numAxes == num_axes);
|
||||
#if !defined(__i386__) && !defined(__sh__)
|
||||
#if !defined(__i386__) && !defined(__m68k__) && !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);
|
||||
|
||||
Reference in New Issue
Block a user