Should be a 0/1 but just in case make sure. Signed-off-by: Frediano Ziglio <fziglio@xxxxxxxxxx> --- 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: -- 2.17.1 _______________________________________________ Spice-devel mailing list Spice-devel@xxxxxxxxxxxxxxxxxxxxx https://lists.freedesktop.org/mailman/listinfo/spice-devel