diff options
author | dvdli <dvdli@google.com> | 2021-01-12 18:09:46 +0800 |
---|---|---|
committer | dvdli <dvdli@google.com> | 2021-01-12 18:09:46 +0800 |
commit | b618ec79a1fde67594d7361c5fdc07d74a464951 (patch) | |
tree | d982d2d26d3dfbcb1d5ddfd8955673121f483010 /utils | |
parent | 855354a87d2983e190088bc5330c129094b900ca (diff) |
fix integer character ascii range
Diffstat (limited to 'utils')
-rw-r--r-- | utils/tinymix.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/tinymix.c b/utils/tinymix.c index 5c0378c..e272ade 100644 --- a/utils/tinymix.c +++ b/utils/tinymix.c @@ -370,7 +370,7 @@ fail: static int is_int(const char *value) { - return value[0] >= '0' || value[0] <= '9'; + return value[0] >= '0' && value[0] <= '9'; } struct parsed_int |