Changeset c37c24c in mainline for uspace/lib/usbhid/src/hidparser.c


Ignore:
Timestamp:
2024-04-07T09:52:47Z (11 months ago)
Author:
Nataliia Korop <n.corop08@…>
Children:
e55d2c1
Parents:
6c1e7c0 (diff), 34aad53d (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 branch 'topic/packet-capture' into topic/packet-capture-choose-nic

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/usbhid/src/hidparser.c

    r6c1e7c0 rc37c24c  
    225225        /* Than we take the higher bits from the LSB */
    226226        const unsigned bit_offset = item->offset % 8;
    227         const int lsb_bits = min(bits, 8);
     227        const int lsb_bits = min((unsigned)bits, 8 - bit_offset);
    228228
    229229        value |= (*data >> bit_offset) & BIT_RRANGE(uint8_t, lsb_bits);
Note: See TracChangeset for help on using the changeset viewer.