From def6a8f879e77bbf1606e21f8dc8d7335da9d381 Mon Sep 17 00:00:00 2001 From: Xiaofan Chen Date: Mon, 2 Sep 2013 11:35:40 +0100 Subject: [PATCH] Windows: Address an VS2012/x64 warning in hotplug.c ..\libusb\hotplug.c(255): warning C4244: '=' : conversion from 'ssize_t' to 'int', possible loss of data --- libusb/hotplug.c | 2 +- libusb/version_nano.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libusb/hotplug.c b/libusb/hotplug.c index 2465f6e..081bc79 100644 --- a/libusb/hotplug.c +++ b/libusb/hotplug.c @@ -252,7 +252,7 @@ int API_EXPORTED libusb_hotplug_register_callback(libusb_context *ctx, int i, len; struct libusb_device **devs; - len = libusb_get_device_list(ctx, &devs); + len = (int) libusb_get_device_list(ctx, &devs); if (len < 0) { libusb_hotplug_deregister_callback(ctx, new_callback->handle); diff --git a/libusb/version_nano.h b/libusb/version_nano.h index 3bb3891..20982a3 100644 --- a/libusb/version_nano.h +++ b/libusb/version_nano.h @@ -1 +1 @@ -#define LIBUSB_NANO 10828 +#define LIBUSB_NANO 10829 -- 2.11.4.GIT