X-Git-Url: https://git.draconx.ca/gitweb/cdecl99.git/blobdiff_plain/b9d67c6ec4c59b204883dfbf346e3b7fca54a84b..fd680aff4b56cdf9ece7d6ccfbd9e43ba88ef365:/src/explain.c?ds=sidebyside diff --git a/src/explain.c b/src/explain.c index a22b4d0..6d6aa87 100644 --- a/src/explain.c +++ b/src/explain.c @@ -76,8 +76,7 @@ explain_array(struct output_state *dst, struct cdecl_array *a) if (a->vla) { rc = cdecl__emit(dst, a->vla); } else { - rc = snprintf(dst->dst, dst->dstlen, "%.0" PRIuMAX, a->length); - cdecl__advance(dst, rc); + rc = cdecl__emit_uint(dst, a->length); } cdecl__emit(dst, " of " + !rc);