1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-01-11 07:17:58 +00:00

libztex: Silence warning: comparison between signed and unsigned

This commit is contained in:
Peter Stuge 2012-11-25 03:51:46 +01:00 committed by Denis Ahrens
parent cffc21db28
commit 1c204dc927

View File

@ -466,7 +466,7 @@ int libztex_prepare_device(struct libusb_device *dev, struct libztex_device** zt
}
/* num chars = (all bytes except bLength and bDescriptorType) / 2 */
for (i = 0; i <= (cnt - 2) / 2 && i < sizeof(newdev->snString)-1; i++)
for (i = 0; i <= (cnt - 2) / 2 && i < (int)sizeof(newdev->snString)-1; i++)
newdev->snString[i] = buf[2 + i*2];
newdev->snString[i] = 0;