From dbdf82d26ef1c59ace58c7fa587eeecafcd9e000 Mon Sep 17 00:00:00 2001 From: Matthias Andree Date: Sun, 11 May 2008 10:52:43 +0200 Subject: [PATCH] In debug output, cast size_t arguments to long for consistency with printf %ld argument. --- rfc3676.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rfc3676.c b/rfc3676.c index 2bfbb60f..4de8ba7c 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; } -- 2.49.0