From 096984a8009b2eac99f8acd574cd9726ae2005ae Mon Sep 17 00:00:00 2001 From: Robert Stepanek Date: Thu, 29 Jun 2017 13:19:32 +0200 Subject: [PATCH] jmap_ical.c: use JSON_INTEGER_FORMAT to format libjansson ints --- imap/jmap_ical.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/imap/jmap_ical.c b/imap/jmap_ical.c index 30ea8fb27..968b3c37c 100644 --- a/imap/jmap_ical.c +++ b/imap/jmap_ical.c @@ -3445,7 +3445,7 @@ recurrence_to_ical(context_t *ctx, icalcomponent *comp, json_t *recur) buf_appendcstr(&buf, ","); } if (nth) { - buf_printf(&buf, "%+lld", nth); + buf_printf(&buf, "%+"JSON_INTEGER_FORMAT, nth); } buf_appendcstr(&buf, day); free(day); @@ -3660,7 +3660,7 @@ links_to_ical(context_t *ctx, icalcomponent *comp, json_t *links) /* size */ if (size >= 0) { - buf_printf(&buf, "%lld", (long long) size); + buf_printf(&buf, "%"JSON_INTEGER_FORMAT, size); icalproperty_add_parameter(prop, icalparameter_new_size(buf_cstring(&buf))); buf_reset(&buf); }