Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit e2391b6

Browse files
author
Stephen
committed
Fix compiler warnings
1 parent 97ce43c commit e2391b6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

‎libusb/hid.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,7 +330,7 @@ static size_t get_max_report_size(uint8_t * report_descriptor, int desc_size, en
330330
if (key_cmd == 0x74) { /* Report Size */
331331
report_size = get_bytes(report_descriptor, desc_size, data_len, i);
332332
}
333-
if (key_cmd == report_type) { /* Input / Output / Feature */
333+
if (key_cmd == (int)report_type) { /* Input / Output / Feature */
334334
if (report_count < 0 || report_size < 0) {
335335
/* We are missing size or count. That isn't good. */
336336
return 0;

‎libusb/test/max_input_report_size_test.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ static int parse_max_input_report_size(const char * filename, struct max_report_
3636
if (sscanf(line, "pp_data->caps_info[2]->ReportByteLength = %hu\n", &temp_ushort) == 1) {
3737
sizes->feature = (size_t)temp_ushort;
3838
}
39-
if (sscanf(line, "pp_data->cap[%*hu]->ReportID = 0x%hu\n", &temp_ushort) == 1) {
39+
if (sscanf(line, "pp_data->cap[%*u]->ReportID = 0x%hu\n", &temp_ushort) == 1) {
4040
if (temp_ushort) {
4141
has_report_id = 1;
4242
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /