[Spice-devel] [PATCH spice-common] canvas_base: Make sure top_down is a boolean
Frediano Ziglio
fziglio at redhat.com
Wed Jun 27 16:50:31 UTC 2018
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:
--
2.17.1
More information about the Spice-devel
mailing list