Changeset ba276f7 in mainline for generic/src/lib/func.c
- Timestamp:
- 2005-12-11T22:39:11Z (20 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 96c939e
- Parents:
- 3550c393
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
generic/src/lib/func.c
r3550c393 rba276f7 141 141 142 142 while (*text) { 143 if (base != 16 && *text >= 'A' && *text <= 'F') 143 if (base != 16 && \ 144 ((*text >= 'A' && *text <= 'F' ) 145 || (*text >='a' && *text <='f'))) 144 146 break; 145 147 if (base == 8 && *text >='8') … … 152 154 result *= base; 153 155 result += *text - 'A' + 10; 156 } else if (*text >= 'a' && *text <= 'f') { 157 result *= base; 158 result += *text - 'a' + 10; 154 159 } else 155 160 break;
Note:
See TracChangeset
for help on using the changeset viewer.