mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-21 05:26:03 +00:00
infintesimal -> infinitesimal
This commit is contained in:
parent
6924e506ae
commit
e0e31b9637
1 changed files with 1 additions and 1 deletions
|
|
@ -96,7 +96,7 @@ Sint32 SDL_rand_r(Uint64 *state, Sint32 n)
|
|||
|
||||
if (n < 0) {
|
||||
// The algorithm looks like it works for numbers < 0 but it has an
|
||||
// infintesimal chance of returning a value out of range.
|
||||
// infinitesimal chance of returning a value out of range.
|
||||
// Returning -SDL_rand(abs(n)) blows up at INT_MIN instead.
|
||||
// It's easier to just say no.
|
||||
return 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue