Add SDL_test test suite; add fuzzer test cases; fix fuzzer bug; fix compiler warnings
This commit is contained in:
parent
4e861f19ca
commit
da76be8927
8 changed files with 148 additions and 5 deletions
|
@ -586,7 +586,7 @@ SDLTest_RandomUnitFloat()
|
|||
float
|
||||
SDLTest_RandomFloat()
|
||||
{
|
||||
return (float) (FLT_MIN + SDLTest_RandomUnitDouble() * (FLT_MAX - FLT_MIN));
|
||||
return (float) (SDLTest_RandomUnitDouble() * (double)2.0 * (double)FLT_MAX - (double)(FLT_MAX));
|
||||
}
|
||||
|
||||
double
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue