summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
Diffstat (limited to 'util')
-rw-r--r--util/kconfig/toada.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/kconfig/toada.c b/util/kconfig/toada.c
index 677aaca815..02b6351c5d 100644
--- a/util/kconfig/toada.c
+++ b/util/kconfig/toada.c
@@ -103,7 +103,7 @@ int main(int argc, char *argv[])
print_bool(name, true);
} else if (strncmp(val, "0x", 2) == 0) {
print_hex(name, val + 2);
- } else if (isdigit(val[0])) {
+ } else if (isdigit(val[0]) || (val[0] == '-' && isdigit(val[1]))) {
print_dec(name, val);
} else {
fprintf(stderr,