diff options
author | Blue Swirl <blauwirbel@gmail.com> | 2010-07-31 19:40:17 +0000 |
---|---|---|
committer | Blue Swirl <blauwirbel@gmail.com> | 2010-07-31 19:40:17 +0000 |
commit | aee474ebc62686ae8827747b0b1aed85b8122979 (patch) | |
tree | 0bb00025c96481e1bb4f5fd95ed17cee95793432 /ui | |
parent | 3690cec8f8d210a53471817ca01adadce34ab202 (diff) |
Fix uint8_t comparison with negative value
Commit 7bccf57383cca60a778d5c543ac80c9f62d89ef2 missed this one:
/src/qemu/ui/vnc-enc-tight.c: In function 'send_sub_rect':
/src/qemu/ui/vnc-enc-tight.c:1527: warning: comparison is always true due to limited range of data type
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'ui')
-rw-r--r-- | ui/vnc-enc-tight.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/vnc-enc-tight.c b/ui/vnc-enc-tight.c index 8ca55702b1..6f046f86c5 100644 --- a/ui/vnc-enc-tight.c +++ b/ui/vnc-enc-tight.c @@ -1524,7 +1524,7 @@ static int send_sub_rect(VncState *vs, int x, int y, int w, int h) colors = tight_fill_palette(vs, x, y, w * h, &fg, &bg, &palette); #ifdef CONFIG_VNC_JPEG - if (vs->tight.quality != -1) { + if (vs->tight.quality != (uint8_t)-1) { ret = send_sub_rect_jpeg(vs, x, y, w, h, bg, fg, colors, palette); } else { ret = send_sub_rect_nojpeg(vs, x, y, w, h, bg, fg, colors, palette); |