Changeset 13d5639 in mainline for uspace/lib/c/generic/str.c


Ignore:
Timestamp:
2012-07-29T12:58:21Z (12 years ago)
Author:
Martin Sucha <sucha14@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
4efeab5, c1b0c750
Parents:
56ba2b9
Message:

Correctly check numbers while converting them to integer.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/generic/str.c

    r56ba2b9 r13d5639  
    10851085                c = (c >= 'a' ? c - 'a' + 10 : (c >= 'A' ? c - 'A' + 10 :
    10861086                    (c <= '9' ? c - '0' : 0xff)));
    1087                 if (c > base) {
     1087                if (c >= base) {
    10881088                        break;
    10891089                }
Note: See TracChangeset for help on using the changeset viewer.