From: Matthew Fernandez Date: Thu, 11 Nov 2021 01:27:19 +0000 (-0800) Subject: gvwrite: use more conforming type when calling 'deflate' X-Git-Tag: 2.50.0~30^2~12 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d09786f36295920d752e5ddf54d2dfe25d20fcf0;p=graphviz gvwrite: use more conforming type when calling 'deflate' This is what the zlib API documents `deflate` as returning. Squashes a -Wsign-conversion warning. --- diff --git a/lib/gvc/gvdevice.c b/lib/gvc/gvdevice.c index 5fea75809..84a76187c 100644 --- a/lib/gvc/gvdevice.c +++ b/lib/gvc/gvdevice.c @@ -221,9 +221,9 @@ size_t gvwrite (GVJ_t * job, const char *s, size_t len) while (z->avail_in) { z->next_out = df; z->avail_out = dfallocated; - ret=deflate (z, Z_NO_FLUSH); - if (ret != Z_OK) { - (job->common->errorfn) ("deflation problem %d\n", ret); + int r = deflate(z, Z_NO_FLUSH); + if (r != Z_OK) { + (job->common->errorfn) ("deflation problem %d\n", r); exit(1); }