Changeset 5a2e0dd5 in mainline


Ignore:
Timestamp:
2018-12-05T09:12:51Z (6 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
de9a18e
Parents:
bbe20da
git-author:
Jiri Svoboda <jiri@…> (2018-12-05 07:12:31)
git-committer:
Jiri Svoboda <jiri@…> (2018-12-05 09:12:51)
Message:

Be more careful when comparing large numbers

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/src/mm/as.c

    rbbe20da r5a2e0dd5  
    555555        uintptr_t vb = *(uintptr_t *)b;
    556556
    557         return va - vb;
     557        if (va < vb)
     558                return -1;
     559        else if (va == vb)
     560                return 0;
     561        else
     562                return +1;
    558563}
    559564
Note: See TracChangeset for help on using the changeset viewer.