Fix uint8_t comparisons with negative values
commit7bccf57383cca60a778d5c543ac80c9f62d89ef2
authorBlue Swirl <blauwirbel@gmail.com>
Tue, 27 Jul 2010 15:32:39 +0000 (27 15:32 +0000)
committerBlue Swirl <blauwirbel@gmail.com>
Tue, 27 Jul 2010 15:32:39 +0000 (27 15:32 +0000)
tree72fbace13f3abd6b3a5a8d525924064dbd4a9022
parentfd2f659ee3f6f991f4f194f3fde5c9f957fd663d
Fix uint8_t comparisons with negative values

Fix the following warnings:
/src/qemu/hw/ide/core.c: In function `ide_drive_pio_post_load':
/src/qemu/hw/ide/core.c:2767: warning: comparison is always false due to limited range of data type

/src/qemu/ui/vnc-enc-tight.c: In function `tight_detect_smooth_image':
/src/qemu/ui/vnc-enc-tight.c:284: warning: comparison is always true due to limited range of data type
/src/qemu/ui/vnc-enc-tight.c:297: warning: comparison is always true due to limited range of data type
/src/qemu/ui/vnc-enc-tight.c: In function `tight_encode_indexed_rect16':
/src/qemu/ui/vnc-enc-tight.c:456: warning: comparison is always false due to limited range of data type
/src/qemu/ui/vnc-enc-tight.c: In function `tight_encode_indexed_rect32':
/src/qemu/ui/vnc-enc-tight.c:457: warning: comparison is always false due to limited range of data type

Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
hw/ide/core.c
ui/vnc-enc-tight.c