Skip to content

Commit

Permalink
ReadUSB: Fix compiler warning
Browse files Browse the repository at this point in the history
ccid_usb.c: In function ‘ReadUSB’:
ccid_usb.c:967:61: warning: comparison of integer expressions of different signedness: ‘int’ and ‘unsigned int’ [-Wsign-compare]
  967 |                                 if (concurrent[slot].length > *length)
  • Loading branch information
LudovicRousseau committed Jan 27, 2022
1 parent 9c59fc5 commit 401f9fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ccid_usb.c
Original file line number Diff line number Diff line change
Expand Up @@ -964,7 +964,7 @@ status_t ReadUSB(unsigned int reader_index, unsigned int * length,
slot);
if (concurrent[slot].length > 0)
{
if (concurrent[slot].length > *length)
if (concurrent[slot].length > (int)*length)
DEBUG_CRITICAL3("Received %d bytes but expected only %d",
concurrent[slot].length, *length);
else
Expand Down

0 comments on commit 401f9fb

Please sign in to comment.