aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-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);
}
}