summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/decode_gif.c4
1 files changed, 2 insertions, 2 deletions
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;