From 48ffba3f1b6a267e94dc14ef72f8407256387d24 Mon Sep 17 00:00:00 2001 From: "Christoph M. Becker" Date: Thu, 21 Nov 2019 09:51:42 +0100 Subject: Fix GD build with -D SIGNED_COMPARE_SLOW MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Apparently, this has not been tested for a long time, and might be a refactoring relict. Anyhow, we have to pass the context to `GIFNextPixel` as well. This issue has been reported by Kleber TarcĂ­sio. --- src/gd_gif_out.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/gd_gif_out.c') diff --git a/src/gd_gif_out.c b/src/gd_gif_out.c index 7e6726d..2dd866a 100644 --- a/src/gd_gif_out.c +++ b/src/gd_gif_out.c @@ -1404,7 +1404,7 @@ static void compress(int init_bits, gdIOCtxPtr outfile, gdImagePtr im, GifCtx *c output((code_int)ctx->ClearCode, ctx); #ifdef SIGNED_COMPARE_SLOW - while((c = GIFNextPixel(im)) != (unsigned) EOF) { + while((c = GIFNextPixel(im, ctx)) != (unsigned) EOF) { #else /* SIGNED_COMPARE_SLOW */ while((c = GIFNextPixel(im, ctx)) != EOF) { #endif /* SIGNED_COMPARE_SLOW */ -- cgit v1.2.1