Skip to content

Commit 5c79c5a

Browse files
committed
Update rcore.c
1 parent 87f26c8 commit 5c79c5a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/rcore.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1725,14 +1725,14 @@ int *LoadRandomSequence(unsigned int count, int min, int max)
17251725
#if defined(SUPPORT_RPRAND_GENERATOR)
17261726
values = rprand_load_sequence(count, min, max);
17271727
#else
1728-
if (count > (abs(max - min) + 1)) return values;
1728+
if (count > ((unsigned int)abs(max - min) + 1)) return values;
17291729

17301730
values = (int *)RL_CALLOC(count, sizeof(int));
17311731

17321732
int value = 0;
17331733
bool dupValue = false;
17341734

1735-
for (int i = 0; i < count;)
1735+
for (int i = 0; i < (int)count;)
17361736
{
17371737
value = (rand()%(abs(max - min) + 1) + min);
17381738
dupValue = false;

0 commit comments

Comments
 (0)