diff options
| author | Ray <[email protected]> | 2022-12-18 18:00:21 +0100 |
|---|---|---|
| committer | Ray <[email protected]> | 2022-12-18 18:00:21 +0100 |
| commit | 03cc540d5f1df71bd7ad8118d0e11b492fa5cc18 (patch) | |
| tree | ddae812560295d078e0c6438e96633c5a5a1cb5c | |
| parent | d7f7c94c4d44df89f6104dcda93eb330fc8534f3 (diff) | |
| download | raylib-03cc540d5f1df71bd7ad8118d0e11b492fa5cc18.tar.gz raylib-03cc540d5f1df71bd7ad8118d0e11b492fa5cc18.zip | |
Minor tweak
| -rw-r--r-- | src/rcore.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/rcore.c b/src/rcore.c index e1fcd0de..12fe7351 100644 --- a/src/rcore.c +++ b/src/rcore.c @@ -2824,9 +2824,10 @@ int GetRandomValue(int min, int max) max = min; min = tmp; } + if ((unsigned int)(max - min) > (unsigned int)RAND_MAX) { - TRACELOG(LOG_WARNING, "Invalid GetRandomValue arguments. Range should not be higher than %i.", RAND_MAX); + TRACELOG(LOG_WARNING, "Invalid GetRandomValue() arguments, range should not be higher than %i", RAND_MAX); } return (rand()%(abs(max - min) + 1) + min); |
