diff options
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); } } |