From de28ab46e8ee63329959bd572ce1c3a54cabee60 Mon Sep 17 00:00:00 2001 From: Minghui Liu Date: Thu, 22 Mar 2018 03:39:43 -0700 Subject: atolx should use tolower instead of toupper --- lib/lib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') 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); } } -- cgit v1.2.3