mirror of
https://github.com/RPCS3/libusb.git
synced 2026-01-31 01:25:19 +01:00
hotplug: Cast ssize_t to int in error path to avoid compiler warning
Signed-off-by: Chris Dickens <christopher.a.dickens@gmail.com>
This commit is contained in:
@@ -300,7 +300,7 @@ int API_EXPORTED libusb_hotplug_register_callback(libusb_context *ctx,
|
||||
if (len < 0) {
|
||||
libusb_hotplug_deregister_callback(ctx,
|
||||
new_callback->handle);
|
||||
return len;
|
||||
return (int)len;
|
||||
}
|
||||
|
||||
for (i = 0; i < len; i++) {
|
||||
|
||||
@@ -1 +1 @@
|
||||
#define LIBUSB_NANO 11240
|
||||
#define LIBUSB_NANO 11241
|
||||
|
||||
Reference in New Issue
Block a user