Browse Source

MSVC: Fix void pointer arithmetic error

GNU C allows it as a compiler extension, but MSVC doesn't.
pull/433/head
Ahmad Fatoum 7 years ago
parent
commit
a2edc9d641
No known key found for this signature in database GPG Key ID: C3EAC3DE9321D59B
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/textures.c

+ 1
- 1
src/textures.c 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 = p">(unsigned char *)image->data + GetPixelDataSize(image->width, image->height, image->format);
mipWidth = image->width/2;
mipHeight = image->height/2;

Loading…
Cancel
Save