Skip to content

Commit 2e28ff1

Browse files
iwamatsuwhot
authored andcommitted
Disable check of double-aligned in test/input.c on Renesas SH
Renesas SH is not aligned at size of double. When structure has double value, It is aligned in 4byte (long). Signed-off-by: Nobuhiro Iwamatsu <[email protected]> Reviewed-by: Peter Hutterer <[email protected]> Signed-off-by: Peter Hutterer <[email protected]> (cherry picked from commit b29ce07)
1 parent 79ac611 commit 2e28ff1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/input.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1223,7 +1223,7 @@ static void dix_valuator_alloc(void)
12231223

12241224
assert(v);
12251225
assert(v->numAxes == num_axes);
1226-
#ifndef __i386__
1226+
#if !defined(__i386__) && !defined(__sh__)
12271227
/* must be double-aligned on 64 bit */
12281228
assert(((void*)v->axisVal - (void*)v) % sizeof(double) == 0);
12291229
assert(((void*)v->axes - (void*)v) % sizeof(double) == 0);

0 commit comments

Comments
 (0)