From bd8e59f18d1210fee56eb3d37addba8b37172ea6 Mon Sep 17 00:00:00 2001 From: Ray Date: Mon, 10 Mar 2025 17:07:18 +0100 Subject: [PATCH] Replace `size_t` by `unsigned int` --- src/rlgl.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/rlgl.h b/src/rlgl.h index ae88df3bf..e5394a6fe 100644 --- a/src/rlgl.h +++ b/src/rlgl.h @@ -3694,8 +3694,8 @@ unsigned char *rlReadScreenPixels(int width, int height) { for (int x = 0; x < (width*4); x += 4) { - size_t s = ((height - 1) - y)*width*4 + x; - size_t e = y*width*4 + x; + unsigned int s = ((height - 1) - y)*width*4 + x; + unsigned int e = y*width*4 + x; unsigned char r = imgData[s]; unsigned char g = imgData[s+1];