Fixed Xcode warnings

This commit is contained in:
Sam Lantinga
2024-09-18 13:20:53 -07:00
parent 7edf7fad66
commit 481203c074
5 changed files with 44 additions and 22 deletions

View File

@@ -1572,7 +1572,7 @@ int HID_API_EXPORT_CALL hid_get_report_descriptor(hid_device *dev, unsigned char
}
memcpy(buf, descriptor_buf, copy_len);
return copy_len;
return (int)copy_len;
}
else {
register_device_error(dev, "Failed to get kIOHIDReportDescriptorKey property");