From a4144845845cd0a06fb9074ba2d6669ece3a5b1a Mon Sep 17 00:00:00 2001
From: Ludovic Rousseau <ludovic.rousseau+github@gmail.com>
Date: Wed, 19 Jun 2013 13:16:31 +0200
Subject: [PATCH] Core: fix compiler warning in libusb_setlocale()

strerror.c: In function 'libusb_setlocale':
strerror.c:148: warning: comparison between signed and unsigned
strerror.c:152: warning: comparison between signed and unsigned
---
 libusb/strerror.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libusb/strerror.c b/libusb/strerror.c
index dfb4863..aab82b6 100644
--- a/libusb/strerror.c
+++ b/libusb/strerror.c
@@ -139,7 +139,7 @@ static const char* usbi_localized_errors[ARRAYSIZE(usbi_locale_supported)][LIBUS
 
 int API_EXPORTED libusb_setlocale(const char *locale)
 {
-	int i;
+	size_t i;
 
 	if ( (locale == NULL) || (strlen(locale) < 2)
 	  || ((strlen(locale) > 2) && (locale[2] != '-') && (locale[2] != '_') && (locale[2] != '.')) )
-- 
1.8.3.1

