From def6a8f879e77bbf1606e21f8dc8d7335da9d381 Mon Sep 17 00:00:00 2001 From: Xiaofan Chen Date: Mon, 2 Sep 2013 11:35:40 +0100 Subject: 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 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libusb/hotplug.c') 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); -- cgit v1.2.1