On Tue, Aug 09, 2011 at 11:00:34AM +0900, Nobuhiro Iwamatsu wrote:
> 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]>
> ---
>  test/input.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/test/input.c b/test/input.c
> index 837ce49..6a0c523 100644
> --- a/test/input.c
> +++ b/test/input.c
> @@ -1223,7 +1223,7 @@ static void dix_valuator_alloc(void)
>  
>          assert(v);
>          assert(v->numAxes == num_axes);
> -#ifndef __i386__
> +#if !defined(__i386__) && !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.5.4

merged, thanks.

Cheers,
  Peter
_______________________________________________
[email protected]: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: http://lists.x.org/mailman/listinfo/xorg-devel

Reply via email to