Changeset 2312685 in mainline for generic/src/lib/func.c


Ignore:
Timestamp:
2005-12-10T18:02:51Z (20 years ago)
Author:
Ondrej Palkovsky <ondrap@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
3887b105
Parents:
7a8c866a
Message:

Fixes in new console.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • generic/src/lib/func.c

    r7a8c866a r2312685  
    136136
    137137        while (*text) {
    138                 result *= base;
    139138                if (base != 16 && *text >= 'A' && *text <= 'F')
    140139                        break;
     
    142141                        break;
    143142
    144                 if (*text >= '0' && *text <= '9')
     143                if (*text >= '0' && *text <= '9') {
     144                        result *= base;
    145145                        result += *text - '0';
    146                 else if (*text >= 'A' && *text <= 'F')
     146                } else if (*text >= 'A' && *text <= 'F') {
     147                        result *= base;
    147148                        result += *text - 'A' + 10;
    148                 else
     149                } else
    149150                        break;
    150151                text++;
Note: See TracChangeset for help on using the changeset viewer.