diff options
author | Frediano Ziglio <fziglio@redhat.com> | 2017-12-24 13:21:04 +0000 |
---|---|---|
committer | Frediano Ziglio <fziglio@redhat.com> | 2018-06-27 21:44:17 +0100 |
commit | 1378d5cfc4751afba401d30c9dd38a561fa39297 (patch) | |
tree | 14ad10be826e895c5d6a5319ca9d464b322454e4 | |
parent | 16deca6f1c5ccecc28fc2e381b20fff8a421088f (diff) |
canvas_base: Make sure top_down is a boolean
Should be a 0/1 but just in case make sure.
Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
Acked-by: Jonathon Jongsma <jjongsma@redhat.com>
-rw-r--r-- | common/canvas_base.c | 2 |
1 files changed, 1 insertions, 1 deletions
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: |