darwin: fix 1 compiler warning
authorLudovic Rousseau <ludovic.rousseau@free.fr>
Sat, 27 Feb 2016 16:42:55 +0000 (17:42 +0100)
committerLudovic Rousseau <ludovic.rousseau@free.fr>
Wed, 2 Mar 2016 15:04:30 +0000 (16:04 +0100)
os/darwin_usb.c:248:18: warning: comparison of integers of different signs:
      'CFIndex' (aka 'long') and 'size_t' (aka 'unsigned long')
      [-Wsign-compare]
      if (length < size) {
          ~~~~~~ ^ ~~~~

Signed-off-by: Ludovic Rousseau <ludovic.rousseau@free.fr>
libusb/os/darwin_usb.c
libusb/version_nano.h

index a19f04a..9284866 100644 (file)
@@ -238,7 +238,7 @@ static int get_ioregistry_value_number (io_service_t service, CFStringRef proper
   return ret;
 }
 
-static int get_ioregistry_value_data (io_service_t service, CFStringRef property, size_t size, void *p) {
+static int get_ioregistry_value_data (io_service_t service, CFStringRef property, ssize_t size, void *p) {
   CFTypeRef cfData = IORegistryEntryCreateCFProperty (service, property, kCFAllocatorDefault, 0);
   int ret = 0;
 
index 2847bad..4cd53ff 100644 (file)
@@ -1 +1 @@
-#define LIBUSB_NANO 11083
+#define LIBUSB_NANO 11084