Changeset 95c675b in mainline for uspace/lib/usb/src/usb.c


Ignore:
Timestamp:
2017-10-17T13:11:35Z (7 years ago)
Author:
Ondřej Hlavatý <aearsis@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
60af4cdb
Parents:
dbf32b1 (diff), a416d070 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge mainline

File:
1 edited

Legend:

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

    rdbf32b1 r95c675b  
    7474const char *usb_str_transfer_type(usb_transfer_type_t t)
    7575{
    76         if (t >= ARRAY_SIZE(str_transfer_type)) {
     76        if ((size_t)t >= ARRAY_SIZE(str_transfer_type)) {
    7777                return "invalid";
    7878        }
     
    8787const char *usb_str_transfer_type_short(usb_transfer_type_t t)
    8888{
    89         if (t >= ARRAY_SIZE(str_transfer_type_short)) {
     89        if ((size_t)t >= ARRAY_SIZE(str_transfer_type_short)) {
    9090                return "invl";
    9191        }
Note: See TracChangeset for help on using the changeset viewer.