From f93d20f3f5dbb40e706a951d628140baeb4880db Mon Sep 17 00:00:00 2001 From: Sean Fox Date: Fri, 27 Jun 2008 03:23:02 +0000 Subject: Type correction; clear gif_animation's memory in gif_create() svn path=/branches/dynis/libnsgif/; revision=4460 --- examples/decode_gif.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'examples') diff --git a/examples/decode_gif.c b/examples/decode_gif.c index 5e136c7..fc508fd 100644 --- a/examples/decode_gif.c +++ b/examples/decode_gif.c @@ -83,14 +83,14 @@ int main(int argc, char *argv[]) /* decode the frames */ for (i = 0; i != gif.frame_count; i++) { unsigned int row, col; - char *image; + unsigned char *image; code = gif_decode_frame(&gif, i); if (code != GIF_OK) warning("gif_decode_frame", code); printf("# frame %u:\n", i); - image = (char *) gif.frame_image; + image = (unsigned char *) gif.frame_image; for (row = 0; row != gif.height; row++) { for (col = 0; col != gif.width; col++) { size_t z = (row * gif.width + col) * 4; -- cgit v1.2.3