From: Cyril Brulebois Date: Fri, 11 Jan 2008 17:16:54 +0000 (+0100) Subject: Fix long int VS int type mismatch X-Git-Url: http://git.madism.org/?a=commitdiff_plain;h=649dd140e33f0f0b0ca7f44f6c2ad69aa5990c53;p=apps%2Fmadmutt.git Fix long int VS int type mismatch --- diff --git a/lib-ui/curs_lib.c b/lib-ui/curs_lib.c index 5e16f4d..b283e42 100644 --- a/lib-ui/curs_lib.c +++ b/lib-ui/curs_lib.c @@ -506,13 +506,13 @@ ssize_t mutt_pretty_size(char *s, ssize_t len, ssize_t n) if (n < 1023949) /* 10K - 999K */ /* 51 is magic which causes 10189/10240 to be rounded up to 10 */ - return snprintf(s, len, "%ldK", (n + 51) / 1024); + return snprintf(s, len, "%ldK", (n + 51) / 1024L); if (n < 10433332) /* 1.0M - 9.9M */ return snprintf(s, len, "%3.1fM", n / 1048576.0); /* (10433332 + 52428) / 1048576 = 10 */ - return snprintf (s, len, "%ldM", (n + 52428) / 1048576); + return snprintf (s, len, "%ldM", (n + 52428) / 1048576L); } /*