Changeset 2312685 in mainline for generic/src/lib/func.c
- Timestamp:
- 2005-12-10T18:02:51Z (20 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 3887b105
- Parents:
- 7a8c866a
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
generic/src/lib/func.c
r7a8c866a r2312685 136 136 137 137 while (*text) { 138 result *= base;139 138 if (base != 16 && *text >= 'A' && *text <= 'F') 140 139 break; … … 142 141 break; 143 142 144 if (*text >= '0' && *text <= '9') 143 if (*text >= '0' && *text <= '9') { 144 result *= base; 145 145 result += *text - '0'; 146 else if (*text >= 'A' && *text <= 'F') 146 } else if (*text >= 'A' && *text <= 'F') { 147 result *= base; 147 148 result += *text - 'A' + 10; 148 else149 } else 149 150 break; 150 151 text++;
Note:
See TracChangeset
for help on using the changeset viewer.