#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
+#include <inttypes.h>
#include <stdbool.h>
#include <assert.h>
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);
}