Changeset 557:6376b0700e63
- Timestamp:
- 06/01/08 10:34:03 (7 months ago)
- Author:
- David Anderson <dave@…>
- Branch:
- default
- Message:
-
Fix ato[us]32 error condition to actually error on invalid input.
- Files:
-
Legend:
- Unmodified
- Added
- Removed
-
|
r556
|
r557
|
|
| 106 | 106 | |
| 107 | 107 | /* If one character is invalid, fail by returning 0. */ |
| 108 | | if (c < '0' && c > '9') { |
| | 108 | if (c < '0' || c > '9') { |
| 109 | 109 | return 0; |
| 110 | 110 | } |
| … |
… |
|
| 136 | 136 | |
| 137 | 137 | /* If one character is invalid, fail by returning 0. */ |
| 138 | | if (c < '0' && c > '9') { |
| | 138 | if (c < '0' || c > '9') { |
| 139 | 139 | return 0; |
| 140 | 140 | } |