Changeset 1c9ae08 in mainline


Ignore:
Timestamp:
2018-06-27T15:07:59Z (6 years ago)
Author:
Jiří Zárevúcky <jiri.zarevucky@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
6b96dc06
Parents:
cb19590
Message:

Fix undefined behavior.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/softfloat/common.c

    rcb19590 r1c9ae08  
    252252        int j;
    253253        for (j = 0; j < 32; j += 8) {
    254                 if (i & (0xFF << (24 - j))) {
     254                if (i & (0xFFu << (24 - j))) {
    255255                        return (j + count_zeroes8(i >> (24 - j)));
    256256                }
Note: See TracChangeset for help on using the changeset viewer.