Changeset 05b59393 in mainline for uspace/lib/usb/src/usb.c


Ignore:
Timestamp:
2017-10-04T18:02:14Z (7 years ago)
Author:
jzr <zarevucky.jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
c9e88da
Parents:
0b2d369
Message:

Fix a couple of benign clang warnings.
No change in semantics.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/usb/src/usb.c

    r0b2d369 r05b59393  
    7373const char *usb_str_transfer_type(usb_transfer_type_t t)
    7474{
    75         if (t >= ARRAY_SIZE(str_transfer_type)) {
     75        if ((size_t)t >= ARRAY_SIZE(str_transfer_type)) {
    7676                return "invalid";
    7777        }
     
    8686const char *usb_str_transfer_type_short(usb_transfer_type_t t)
    8787{
    88         if (t >= ARRAY_SIZE(str_transfer_type_short)) {
     88        if ((size_t)t >= ARRAY_SIZE(str_transfer_type_short)) {
    8989                return "invl";
    9090        }
Note: See TracChangeset for help on using the changeset viewer.