From: Matthias Andree Date: Sun, 11 May 2008 08:52:43 +0000 (+0200) Subject: In debug output, cast size_t arguments to long for consistency with X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=522ffaae119d27a8ac8bff9fc43adc6f3b9cced2;p=neomutt In debug output, cast size_t arguments to long for consistency with printf %ld argument. --- diff --git a/rfc3676.c b/rfc3676.c index 2bfbb60fe..4de8ba7c0 100644 --- a/rfc3676.c +++ b/rfc3676.c @@ -101,16 +101,16 @@ static void print_flowed_line (char *line, STATE *s, int ql, size_t *sofar, int width = quote_width (s, ql); - dprint (4, (debugfile, "f-f: line [%s], width = %ld\n", NONULL(line), width)); + dprint (4, (debugfile, "f-f: line [%s], width = %ld\n", NONULL(line), (long)width)); for (p = (char *)line, words = 0; (p = strsep (&line, " ")) != NULL ; ) { w = mutt_strwidth (NONULL(p)); - dprint (4, (debugfile, "f-f: word [%s], width = %ld, line = %ld\n", NONULL(p), w, *sofar)); + dprint (4, (debugfile, "f-f: word [%s], width = %ld, line = %ld\n", NONULL(p), (long)w, (long)*sofar)); if (w + 1 + (*sofar) > width) { /* line would be too long, flush */ - dprint (4, (debugfile, "f-f: width: %ld\n", *sofar)); + dprint (4, (debugfile, "f-f: width: %ld\n", (long)*sofar)); state_puts (" \n", s); *sofar = 0; }