summaryrefslogtreecommitdiffhomepage
path: root/src/textures.c
diff options
context:
space:
mode:
authorRay <[email protected]>2021-05-30 11:50:32 +0200
committerRay <[email protected]>2021-05-30 11:50:32 +0200
commit0369ec9adf5c6f4838a74e29e049ebc4e3aab14f (patch)
tree3ffd03066df609c0c8a17da90eacb81cd966a2a5 /src/textures.c
parentc828e481fbee9846721552cb37250a93332ee115 (diff)
downloadraylib-0369ec9adf5c6f4838a74e29e049ebc4e3aab14f.tar.gz
raylib-0369ec9adf5c6f4838a74e29e049ebc4e3aab14f.zip
Some code tweaks
Diffstat (limited to 'src/textures.c')
-rw-r--r--src/textures.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/textures.c b/src/textures.c
index db562bd9..f46b0c9a 100644
--- a/src/textures.c
+++ b/src/textures.c
@@ -1354,7 +1354,7 @@ void ImageResize(Image *image, int newWidth, int newHeight)
if (fastPath)
{
int bytesPerPixel = GetPixelDataSize(1, 1, image->format);
- unsigned char *output = RL_MALLOC(newWidth*newHeight*bytesPerPixel);
+ unsigned char *output = (unsigned char *)RL_MALLOC(newWidth*newHeight*bytesPerPixel);
switch (image->format)
{