From: Armin Novak Date: Thu, 7 Feb 2019 14:09:47 +0000 (+0100) Subject: Fixed sign-compare warnings. X-Git-Tag: 2.0.0~495^2~29 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6c9130f7d6c0d29805c89145ed969936739a36d4;p=platform%2Fupstream%2Ffreerdp.git Fixed sign-compare warnings. --- diff --git a/channels/urbdrc/client/libusb/libusb_udevice.c b/channels/urbdrc/client/libusb/libusb_udevice.c index a8e5444..316736e 100644 --- a/channels/urbdrc/client/libusb/libusb_udevice.c +++ b/channels/urbdrc/client/libusb/libusb_udevice.c @@ -631,7 +631,7 @@ static int udev_get_hub_handle(UDEVICE* pdev, UINT16 bus_number, UINT16 dev_numb } while (p1 != NULL); - if ((p2 - sysfs_path) < (strlen(sysfs_path) - 2U)) + if ((size_t)((p2 - sysfs_path) + 2U) < strlen(sysfs_path)) { p1 = (char*) sysfs_path;