summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorRay <[email protected]>2023-11-13 16:11:10 +0100
committerRay <[email protected]>2023-11-13 16:11:10 +0100
commit5c79c5a2ec2dde01170f7c1c3a77a3de7b52d171 (patch)
tree45b5177981a916561916e4fc22bc1a742d488e6f
parent87f26c845c1b13b75ed379917180c8ae1ac1635e (diff)
downloadraylib-5c79c5a2ec2dde01170f7c1c3a77a3de7b52d171.tar.gz
raylib-5c79c5a2ec2dde01170f7c1c3a77a3de7b52d171.zip
Update rcore.c
-rw-r--r--src/rcore.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rcore.c b/src/rcore.c
index a12f3204..45398891 100644
--- a/src/rcore.c
+++ b/src/rcore.c
@@ -1725,14 +1725,14 @@ int *LoadRandomSequence(unsigned int count, int min, int max)
#if defined(SUPPORT_RPRAND_GENERATOR)
values = rprand_load_sequence(count, min, max);
#else
- if (count > (abs(max - min) + 1)) return values;
+ if (count > ((unsigned int)abs(max - min) + 1)) return values;
values = (int *)RL_CALLOC(count, sizeof(int));
int value = 0;
bool dupValue = false;
- for (int i = 0; i < count;)
+ for (int i = 0; i < (int)count;)
{
value = (rand()%(abs(max - min) + 1) + min);
dupValue = false;