core: Fixed clang -Wcomma warning

Fixes:

descriptor.c:1179:13: Possible misuse of comma operator here

Signed-off-by: Chris Dickens <christopher.a.dickens@gmail.com>
This commit is contained in:
Sean McBride
2017-12-29 13:30:24 -05:00
committed by Chris Dickens
parent 297238cda8
commit 678a43bcf3
2 changed files with 3 additions and 2 deletions

View File

@@ -1176,7 +1176,8 @@ int API_EXPORTED libusb_get_string_descriptor_ascii(libusb_device_handle *dev_ha
if (tbuf[0] > r)
return LIBUSB_ERROR_IO;
for (di = 0, si = 2; si < tbuf[0]; si += 2) {
di = 0;
for (si = 2; si < tbuf[0]; si += 2) {
if (di >= (length - 1))
break;

View File

@@ -1 +1 @@
#define LIBUSB_NANO 11283
#define LIBUSB_NANO 11284