diff options
author | Pete Batard <pete@akeo.ie> | 2013-05-29 12:42:05 +0200 |
---|---|---|
committer | Hans de Goede <hdegoede@redhat.com> | 2013-05-30 14:21:09 +0200 |
commit | c35629939bde68ea7ee520ae8577288a36f0a9b7 (patch) | |
tree | 43fefdbf569d5e391cd4892d7d62df5e5a08a683 | |
parent | f51b19db343a64b2294fa46fd1b55f8ec6e65751 (diff) | |
download | libusb-c35629939bde68ea7ee520ae8577288a36f0a9b7.tar.gz |
Windows: Fix broken WDK compilation
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
-rw-r--r-- | libusb/descriptor.c | 8 | ||||
-rw-r--r-- | libusb/version_nano.h | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/libusb/descriptor.c b/libusb/descriptor.c index 161be36..358ae61 100644 --- a/libusb/descriptor.c +++ b/libusb/descriptor.c @@ -336,7 +336,7 @@ static int parse_interface(libusb_context *ctx, if (r < 0) goto err; if (r == 0) { - ifp->bNumEndpoints = i; + ifp->bNumEndpoints = (uint8_t)i; break;; } @@ -442,7 +442,7 @@ static int parse_configuration(struct libusb_context *ctx, usbi_warn(ctx, "short extra config desc read %d/%d", size, header.bLength); - config->bNumInterfaces = i; + config->bNumInterfaces = (uint8_t)i; return size; } @@ -479,7 +479,7 @@ static int parse_configuration(struct libusb_context *ctx, if (r < 0) goto err; if (r == 0) { - config->bNumInterfaces = i; + config->bNumInterfaces = (uint8_t)i; break; } @@ -877,7 +877,7 @@ static int parse_bos(struct libusb_context *ctx, buffer += dev_cap.bLength; size -= dev_cap.bLength; } - _bos->bNumDeviceCaps = i; + _bos->bNumDeviceCaps = (uint8_t)i; *bos = _bos; return LIBUSB_SUCCESS; diff --git a/libusb/version_nano.h b/libusb/version_nano.h index 790b7e8..2804c7d 100644 --- a/libusb/version_nano.h +++ b/libusb/version_nano.h @@ -1 +1 @@ -#define LIBUSB_NANO 10727 +#define LIBUSB_NANO 10728 |