mirror of
https://github.com/libratbag/libratbag.git
synced 2026-11-07 23:23:52 +01:00
G300: use int instead of signed
This commit is contained in:
committed by
Peter Hutterer
parent
6d105a002c
commit
5edcdfba5b
@@ -313,7 +313,7 @@ logitech_g300_read_profile(struct ratbag_profile *profile, unsigned int index)
|
||||
HID_FEATURE_REPORT,
|
||||
HID_REQ_GET_REPORT);
|
||||
|
||||
if (rc < (signed)sizeof(*report)) {
|
||||
if (rc < (int)sizeof(*report)) {
|
||||
log_error(device->ratbag,
|
||||
"Error while requesting profile: %d\n", rc);
|
||||
return;
|
||||
@@ -480,7 +480,7 @@ logitech_g300_write_profile(struct ratbag_profile *profile)
|
||||
HID_FEATURE_REPORT,
|
||||
HID_REQ_SET_REPORT);
|
||||
|
||||
if (rc < (signed)sizeof(*report)) {
|
||||
if (rc < (int)sizeof(*report)) {
|
||||
log_error(device->ratbag,
|
||||
"Error while writing profile: %d\n", rc);
|
||||
return rc;
|
||||
|
||||
Reference in New Issue
Block a user