summaryrefslogtreecommitdiff
path: root/libusb
diff options
context:
space:
mode:
authorXiaofan Chen <xiaofanc@gmail.com>2013-09-02 11:35:40 +0100
committerPete Batard <pete@akeo.ie>2013-09-02 11:37:35 +0100
commitdef6a8f879e77bbf1606e21f8dc8d7335da9d381 (patch)
treee80bc19bddb9eb4d97730118df3e1acdf30ef21a /libusb
parent1c1ec3f27c4a3f71b3fec0c1aea0e6514d67fff5 (diff)
downloadlibusb-def6a8f879e77bbf1606e21f8dc8d7335da9d381.tar.gz
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
Diffstat (limited to 'libusb')
-rw-r--r--libusb/hotplug.c2
-rw-r--r--libusb/version_nano.h2
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