aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMinghui Liu <minghui.liu.95@gmail.com>2018-03-22 03:39:43 -0700
committerRob Landley <rob@landley.net>2018-03-22 12:12:43 -0500
commitde28ab46e8ee63329959bd572ce1c3a54cabee60 (patch)
tree7761d3e3c776d822d2875cdc3826d749c5cd1c15
parent0068c53f7e134c455785df7b0547f553d6eb80dd (diff)
downloadtoybox-de28ab46e8ee63329959bd572ce1c3a54cabee60.tar.gz
atolx should use tolower instead of toupper
-rw-r--r--lib/lib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/lib.c b/lib/lib.c
index 991213bc..83e4db45 100644
--- a/lib/lib.c
+++ b/lib/lib.c
@@ -305,7 +305,7 @@ long long atolx(char *numstr)
if (shift==-1) val *= 2;
else if (!shift) val *= 512;
else if (shift>0) {
- if (*c && toupper(*c++)=='d') while (shift--) val *= 1000;
+ if (*c && tolower(*c++)=='d') while (shift--) val *= 1000;
else val *= 1LL<<(shift*10);
}
}