Core: fix another compiler warning in libusb_setlocale()
authorPete Batard <pete@akeo.ie>
Wed, 19 Jun 2013 21:44:58 +0000 (22:44 +0100)
committerPete Batard <pete@akeo.ie>
Wed, 19 Jun 2013 21:44:58 +0000 (22:44 +0100)
* VS2012 (64 bit) produces the following in strerror.c(156):
  warning C4267: '=' : conversion from 'size_t' to 'int', possible loss of data

libusb/strerror.c
libusb/version_nano.h

index aab82b6..a3c3afa 100644 (file)
@@ -29,7 +29,7 @@
 #define strncasecmp _strnicmp
 #endif
 
-static int usbi_locale = 0;
+static size_t usbi_locale = 0;
 
 /** \ingroup misc
  * How to add a new \ref libusb_strerror() translation:
index 915debd..be03325 100644 (file)
@@ -1 +1 @@
-#define LIBUSB_NANO 10747
+#define LIBUSB_NANO 10748