aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordvdli <dvdli@google.com>2021-01-12 18:09:46 +0800
committerdvdli <dvdli@google.com>2021-01-12 18:09:46 +0800
commitb618ec79a1fde67594d7361c5fdc07d74a464951 (patch)
treed982d2d26d3dfbcb1d5ddfd8955673121f483010
parent855354a87d2983e190088bc5330c129094b900ca (diff)
fix integer character ascii range
-rw-r--r--utils/tinymix.c2
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