Commit d3348808 authored by Martijn Pieters's avatar Martijn Pieters Committed by Nils Goroll

Portability: format VCL_INT as intmax_t (%jd)

VCL_INT is int64_t, not long. Do as varnish does: cast to `intmax_t`.
parent adcc8630
......@@ -777,15 +777,15 @@ vmod_encoder__init(VRT_CTX, struct vmod_brotli_encoder **encp,
AN(mode);
if (quality < BROTLI_MIN_QUALITY || quality > BROTLI_MAX_QUALITY) {
VFAIL(ctx, "new %s: quality %ld out of range (%d to %d)",
vcl_name, quality, BROTLI_MIN_QUALITY,
VFAIL(ctx, "new %s: quality %jd out of range (%d to %d)",
vcl_name, (intmax_t)quality, BROTLI_MIN_QUALITY,
BROTLI_MAX_QUALITY);
return;
}
if (lgwin < BROTLI_MIN_WINDOW_BITS || lgwin > BROTLI_MAX_WINDOW_BITS) {
VFAIL(ctx, "new %s: lgwin %ld out of range (%d to %d)",
vcl_name, lgwin, BROTLI_MIN_WINDOW_BITS,
VFAIL(ctx, "new %s: lgwin %jd out of range (%d to %d)",
vcl_name, (intmax_t)lgwin, BROTLI_MIN_WINDOW_BITS,
BROTLI_MAX_WINDOW_BITS);
return;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment