diff options
author | Ludovic Rousseau <ludovic.rousseau@gmail.com> | 2013-02-16 17:23:36 +0100 |
---|---|---|
committer | Ludovic Rousseau <ludovic.rousseau+github@gmail.com> | 2013-02-18 18:30:57 +0100 |
commit | d8c3dcb05659628c03e4a1ecbe5b7af060a5d70f (patch) | |
tree | 859d05b454969b176867f8bceb976d8b9b0cc1c1 | |
parent | 4eed8c694fe52e9610392356b228edd095a519d7 (diff) | |
download | libusb-d8c3dcb05659628c03e4a1ecbe5b7af060a5d70f.tar.gz |
Windows: fix compiler warning
sizeof() returns a size_t not an int
libusb/os/windows_usb.c:1411:24: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
libusb/os/windows_usb.c:1416:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
-rw-r--r-- | libusb/os/windows_usb.c | 2 | ||||
-rw-r--r-- | libusb/version_nano.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/libusb/os/windows_usb.c b/libusb/os/windows_usb.c index 3dff01e..f134431 100644 --- a/libusb/os/windows_usb.c +++ b/libusb/os/windows_usb.c @@ -1327,7 +1327,7 @@ static int windows_get_device_list(struct libusb_context *ctx, struct discovered #define HID_PASS 4 int r = LIBUSB_SUCCESS; int api, sub_api; - int class_index = 0; + size_t class_index = 0; unsigned int nb_guids, pass, i, j, ancestor; char path[MAX_PATH_LENGTH]; char strbuf[MAX_PATH_LENGTH]; diff --git a/libusb/version_nano.h b/libusb/version_nano.h index bb065fd..abfab9c 100644 --- a/libusb/version_nano.h +++ b/libusb/version_nano.h @@ -1 +1 @@ -#define LIBUSB_NANO 10612 +#define LIBUSB_NANO 10613 |