From d09786f36295920d752e5ddf54d2dfe25d20fcf0 Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Wed, 10 Nov 2021 17:27:19 -0800 Subject: [PATCH] gvwrite: use more conforming type when calling 'deflate' This is what the zlib API documents `deflate` as returning. Squashes a -Wsign-conversion warning. --- lib/gvc/gvdevice.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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); } -- 2.40.0