diff options
author | Christoph M. Becker <cmbecker69@gmx.de> | 2019-11-21 09:51:42 +0100 |
---|---|---|
committer | Mike Frysinger <vapier@gmail.com> | 2019-11-21 20:07:20 -0500 |
commit | 48ffba3f1b6a267e94dc14ef72f8407256387d24 (patch) | |
tree | ba575c45e8491316d247ee0427d9f2c289ac87f1 /src/gd_gif_out.c | |
parent | b73137fcd453bb7df6f2e25a4e9a6936ae3a2c53 (diff) | |
download | libgd-48ffba3f1b6a267e94dc14ef72f8407256387d24.tar.gz |
Fix GD build with -D SIGNED_COMPARE_SLOW
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.
Diffstat (limited to 'src/gd_gif_out.c')
-rw-r--r-- | src/gd_gif_out.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 */ |