Fix uint8_t comparisons with negative values
authorBlue Swirl <blauwirbel@gmail.com>
Tue, 27 Jul 2010 15:32:39 +0000 (15:32 +0000)
committerBlue Swirl <blauwirbel@gmail.com>
Tue, 27 Jul 2010 15:32:39 +0000 (15:32 +0000)
commitb9e31016a0a5acd194a41aa562f8a665cbdd647b
tree72fbace13f3abd6b3a5a8d525924064dbd4a9022
parent01cab52238fe8c84ead3cb9330e6b4a96b647091
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