From dfdf87d844de6226fd043bb840de8525d8fbc0d1 Mon Sep 17 00:00:00 2001 From: Ameer Date: Tue, 30 Jun 2020 11:44:55 -0400 Subject: [PATCH] fix implicit conversion of size_t type to int --- src/input_common/gcadapter/gc_adapter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/input_common/gcadapter/gc_adapter.cpp b/src/input_common/gcadapter/gc_adapter.cpp index 774246bdfb..b509b3e46f 100644 --- a/src/input_common/gcadapter/gc_adapter.cpp +++ b/src/input_common/gcadapter/gc_adapter.cpp @@ -191,7 +191,7 @@ void Adapter::Setup() { libusb_device** devs; // pointer to list of connected usb devices - const int cnt = libusb_get_device_list(libusb_ctx, &devs); // get the list of devices + const std::size_t cnt = libusb_get_device_list(libusb_ctx, &devs); // get the list of devices for (int i = 0; i < cnt; i++) { if (CheckDeviceAccess(devs[i])) {