فهرست منبع

fix implicit conversion of size_t type to int

Ameer 6 سال پیش
والد
کامیت
dfdf87d844
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      src/input_common/gcadapter/gc_adapter.cpp

+ 1 - 1
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])) {