diff --git a/stb_image.h b/stb_image.h index c02359b..4de0ca1 100644 --- a/stb_image.h +++ b/stb_image.h @@ -6657,7 +6657,7 @@ static void *stbi__load_gif_main(stbi__context *s, int **delays, int *x, int *y, return stbi__errpuc("outofmem", "Out of memory"); } else - out = tmp; + out = (stbi_uc*) tmp; if (delays) { *delays = (int*) STBI_REALLOC( *delays, sizeof(int) * layers ); }