aboutsummaryrefslogtreecommitdiffstats
path: root/libusb/strerror.c
diff options
context:
space:
mode:
authorPete Batard <pete@akeo.ie>2013-06-19 22:44:58 +0100
committerPete Batard <pete@akeo.ie>2013-06-19 22:44:58 +0100
commit12b18c3b633b0db4dbfeb15a9004dfc64486a5c5 (patch)
treed419c79116866f02513756aa823cab1707c34403 /libusb/strerror.c
parent4935ff097ba93403391340d75f56f52e50112a54 (diff)
downloadandroid_external_libusbx-12b18c3b633b0db4dbfeb15a9004dfc64486a5c5.tar.gz
android_external_libusbx-12b18c3b633b0db4dbfeb15a9004dfc64486a5c5.tar.bz2
android_external_libusbx-12b18c3b633b0db4dbfeb15a9004dfc64486a5c5.zip
Core: fix another compiler warning in libusb_setlocale()
* VS2012 (64 bit) produces the following in strerror.c(156): warning C4267: '=' : conversion from 'size_t' to 'int', possible loss of data
Diffstat (limited to 'libusb/strerror.c')
-rw-r--r--libusb/strerror.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libusb/strerror.c b/libusb/strerror.c
index aab82b6..a3c3afa 100644
--- a/libusb/strerror.c
+++ b/libusb/strerror.c
@@ -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: