qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH 28/29] tests/qapi: use QEMU_IS_ALIGNED macro


From: Marc-André Lureau
Subject: Re: [Qemu-devel] [PATCH 28/29] tests/qapi: use QEMU_IS_ALIGNED macro
Date: Tue, 18 Jul 2017 03:53:37 -0700

On Mon, Jul 17, 2017 at 11:10 PM, Philippe Mathieu-Daudé
<address@hidden> wrote:
> Applied using the Coccinelle semantic patch scripts/coccinelle/use_osdep.cocci
>
> Signed-off-by: Philippe Mathieu-Daudé <address@hidden>

Reviewed-by: Marc-André Lureau <address@hidden>


> ---
>  tests/test-qobject-output-visitor.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/tests/test-qobject-output-visitor.c 
> b/tests/test-qobject-output-visitor.c
> index 749c54065f..121ee181a0 100644
> --- a/tests/test-qobject-output-visitor.c
> +++ b/tests/test-qobject-output-visitor.c
> @@ -558,7 +558,7 @@ static void init_native_list(UserDefNativeListUnion 
> *cvalue)
>          boolList **list = &cvalue->u.boolean.data;
>          for (i = 0; i < 32; i++) {
>              *list = g_new0(boolList, 1);
> -            (*list)->value = (i % 3 == 0);
> +            (*list)->value = QEMU_IS_ALIGNED(i, 3);
>              (*list)->next = NULL;
>              list = &(*list)->next;
>          }
> --
> 2.13.2
>
>



-- 
Marc-André Lureau



reply via email to

[Prev in Thread] Current Thread [Next in Thread]