mirror of
https://github.com/RPCS3/hidapi.git
synced 2026-01-31 01:25:21 +01:00
fix small casting issue
This commit is contained in:
@@ -573,7 +573,7 @@ static void hid_report_callback(void *context, IOReturn result, void *sender,
|
||||
hid_device *dev = (hid_device*) context;
|
||||
|
||||
/* Make a new Input Report object */
|
||||
rpt = (input_report*) calloc(1, sizeof(struct input_report));
|
||||
rpt = (struct input_report*) calloc(1, sizeof(struct input_report));
|
||||
rpt->data = (uint8_t*) calloc(1, report_length);
|
||||
memcpy(rpt->data, report, report_length);
|
||||
rpt->len = report_length;
|
||||
|
||||
Reference in New Issue
Block a user