[Spice-devel] [PATCH spice-common] canvas_base: Make sure top_down is a boolean
Jonathon Jongsma
jjongsma at redhat.com
Wed Jun 27 19:57:55 UTC 2018
OK
Acked-by: Jonathon Jongsma <jjongsma at redhat.com>
On Wed, 2018-06-27 at 17:50 +0100, Frediano Ziglio wrote:
> Should be a 0/1 but just in case make sure.
>
> Signed-off-by: Frediano Ziglio <fziglio at redhat.com>
> ---
> common/canvas_base.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/common/canvas_base.c b/common/canvas_base.c
> index 62c458d..6bf6e5d 100644
> --- a/common/canvas_base.c
> +++ b/common/canvas_base.c
> @@ -529,7 +529,7 @@ static pixman_image_t *canvas_get_lz4(CanvasBase
> *canvas, SpiceImage *image)
> width = image->descriptor.width;
> stride_encoded = width;
> height = image->descriptor.height;
> - top_down = *(data++);
> + top_down = !!*(data++);
> spice_format = *(data++);
> switch (spice_format) {
> case SPICE_BITMAP_FMT_16BIT:
More information about the Spice-devel
mailing list