Fix warnings in visual studio (#3512)

This commit is contained in:
Jeffery Myers
2023-11-06 11:31:07 -08:00
committed by GitHub
parent fc21a8e552
commit 6cd37e57a6
11 changed files with 21 additions and 21 deletions

View File

@ -186,7 +186,7 @@ int *rprand_load_sequence(unsigned int count, int min, int max)
{
int *sequence = NULL;
if (count > (abs(max - min) + 1))
if (count > (unsigned int)(abs(max - min) + 1))
{
RPRAND_LOG("WARNING: Sequence count required is greater than range provided\n");
//count = (max - min);
@ -198,9 +198,9 @@ int *rprand_load_sequence(unsigned int count, int min, int max)
int value = 0;
bool value_is_dup = false;
for (int i = 0; i < count;)
for (unsigned int i = 0; i < count;)
{
value = (rprand_xoshiro()%(abs(max - min) + 1)) + min;
value = ((int)rprand_xoshiro()%(abs(max - min) + 1)) + min;
value_is_dup = false;
for (int j = 0; j < i; j++)