]> granicus.if.org Git - neomutt/commit
Fix type mismatch in mutt_pretty_size()
authorJakub Wilk <jwilk@jwilk.net>
Thu, 14 Dec 2017 15:22:37 +0000 (16:22 +0100)
committerRichard Russon <rich@flatcap.org>
Thu, 14 Dec 2017 17:27:25 +0000 (17:27 +0000)
commitb7f8cba11c7aa090294c255313c560f4f8f0c123
tree958c5a6669ccde4a46c713ec8b3955a450ea9f87
parentcbd8ae49d3d3fea22f760894403c9affa9c2eb68
Fix type mismatch in mutt_pretty_size()

Fixes the following GCC warnings:

    muttlib.c: In function ‘mutt_pretty_size’:
    config.h:55:19: warning: format ‘%lld’ expects argument of type ‘long long int’, but argument 4 has type ‘size_t {aka unsigned int}’ [-Wformat=]
     #define OFF_T_FMT "%" PRId64
                       ^
    muttlib.c:614:22: note: in expansion of macro ‘OFF_T_FMT’
         snprintf(s, len, OFF_T_FMT "K", (n + 51) / 1024);
                          ^~~~~~~~~
    config.h:55:19: warning: format ‘%lld’ expects argument of type ‘long long int’, but argument 4 has type ‘size_t {aka unsigned int}’ [-Wformat=]
     #define OFF_T_FMT "%" PRId64
                       ^
    muttlib.c:621:22: note: in expansion of macro ‘OFF_T_FMT’
         snprintf(s, len, OFF_T_FMT "M", (n + 52428) / 1048576);
                          ^~~~~~~~~
muttlib.c