diff options
| author | Jeffery Myers <[email protected]> | 2023-11-06 11:31:07 -0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-11-06 20:31:07 +0100 |
| commit | 6cd37e57a6b38bb06cc54ecf6aa7659d4895723b (patch) | |
| tree | d3dee9e7f62fc74ee06caa51b99b684292bb3f24 /src/external | |
| parent | fc21a8e552c452804838bfbbbaadaf044a74b81e (diff) | |
| download | raylib-6cd37e57a6b38bb06cc54ecf6aa7659d4895723b.tar.gz raylib-6cd37e57a6b38bb06cc54ecf6aa7659d4895723b.zip | |
Fix warnings in visual studio (#3512)
Diffstat (limited to 'src/external')
| -rw-r--r-- | src/external/rprand.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/external/rprand.h b/src/external/rprand.h index acdeac67..c9b460cd 100644 --- a/src/external/rprand.h +++ b/src/external/rprand.h @@ -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++) |
