Windows: Fix broken WDK compilation
authorPete Batard <pete@akeo.ie>
Wed, 29 May 2013 10:42:05 +0000 (12:42 +0200)
committerHans de Goede <hdegoede@redhat.com>
Thu, 30 May 2013 12:21:09 +0000 (14:21 +0200)
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
libusb/descriptor.c
libusb/version_nano.h

index 161be36..358ae61 100644 (file)
@@ -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;
index 790b7e8..2804c7d 100644 (file)
@@ -1 +1 @@
-#define LIBUSB_NANO 10727
+#define LIBUSB_NANO 10728