MSVC: Fix void pointer arithmetic error

GNU C allows it as a compiler extension, but MSVC doesn't.
This commit is contained in:
Ahmad Fatoum 2018-01-18 13:19:19 +01:00
parent ce9f191f1b
commit a2edc9d641
No known key found for this signature in database
GPG Key ID: C3EAC3DE9321D59B

View File

@ -1114,7 +1114,7 @@ void ImageMipmaps(Image *image)
else TraceLog(LOG_WARNING, "Mipmaps required memory could not be allocated");
// Pointer to allocated memory point where store next mipmap level data
unsigned char *nextmip = image->data + GetPixelDataSize(image->width, image->height, image->format);
unsigned char *nextmip = (unsigned char *)image->data + GetPixelDataSize(image->width, image->height, image->format);
mipWidth = image->width/2;
mipHeight = image->height/2;