]> www.infradead.org Git - users/sagi/nvme-cli.git/commitdiff
Fix long suffix parse on 32-bit machines
authorKeith Busch <keith.busch@intel.com>
Mon, 6 Nov 2017 21:10:08 +0000 (14:10 -0700)
committerKeith Busch <keith.busch@intel.com>
Mon, 6 Nov 2017 21:10:08 +0000 (14:10 -0700)
https://github.com/linux-nvme/nvme-cli/issues/231

Signed-off-by: Keith Busch <keith.busch@intel.com>
suffix.c

index 590db832fff30cc4e402d00edf160e249be4f9e4..544ddfe190aadabe735d2f52c3725d07770be2af 100644 (file)
--- a/suffix.c
+++ b/suffix.c
@@ -113,7 +113,7 @@ long long suffix_binary_parse(const char *value)
 {
        char *suffix;
        errno = 0;
-       long long ret = strtol(value, &suffix, 0);
+       long long ret = strtoll(value, &suffix, 0);
        if (errno)
                return 0;