diff options
author | Minghui Liu <minghui.liu.95@gmail.com> | 2018-03-22 03:39:43 -0700 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2018-03-22 12:12:43 -0500 |
commit | de28ab46e8ee63329959bd572ce1c3a54cabee60 (patch) | |
tree | 7761d3e3c776d822d2875cdc3826d749c5cd1c15 /lib | |
parent | 0068c53f7e134c455785df7b0547f553d6eb80dd (diff) | |
download | toybox-de28ab46e8ee63329959bd572ce1c3a54cabee60.tar.gz |
atolx should use tolower instead of toupper
Diffstat (limited to 'lib')
-rw-r--r-- | lib/lib.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); } } |