aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAhmad Fatoum <ahmad@a3f.at>2018-01-18 13:19:19 +0100
committerAhmad Fatoum <ahmad@a3f.at>2018-01-18 13:20:13 +0100
commita2edc9d64191d9b9253ee7faa5f80cd742f769b2 (patch)
treeb92da9652e1e72798dbaf9695846f1d15d6fef01 /src
parentce9f191f1b0dee3bc9607e58232a166c10cef9c7 (diff)
downloadraylib-a2edc9d64191d9b9253ee7faa5f80cd742f769b2.tar.gz
raylib-a2edc9d64191d9b9253ee7faa5f80cd742f769b2.zip
MSVC: Fix void pointer arithmetic error
GNU C allows it as a compiler extension, but MSVC doesn't.
Diffstat (limited to 'src')
-rw-r--r--src/textures.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/textures.c b/src/textures.c
index f53adb73..50f7e63a 100644
--- a/src/textures.c
+++ b/src/textures.c
@@ -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;