X-Git-Url: https://git.draconx.ca/gitweb/cdecl99.git/blobdiff_plain/f7cfa924116d4dd36b107fa534fff2b5e5e4fa13..41d0e2f8f2dc0ec50526ff6e4b8ff12936d1f90e:/src/explain.c diff --git a/src/explain.c b/src/explain.c index 0f6b787..0d9c957 100644 --- a/src/explain.c +++ b/src/explain.c @@ -20,6 +20,7 @@ #include #include #include +#include #include #include @@ -80,7 +81,7 @@ explain_array(char *buf, size_t n, struct cdecl_array *a) rc = snprintf(buf, n, "%s", a->vla); ret += cdecl__advance(&buf, &n, rc); } else if (a->length) { - rc = snprintf(buf, n, "%ju", a->length); + rc = snprintf(buf, n, "%" PRIuMAX, a->length); ret += cdecl__advance(&buf, &n, rc); }