Add SDL_test test suite; add fuzzer test cases; fix fuzzer bug; fix compiler warnings

This commit is contained in:
Andreas Schiffler 2013-02-08 07:14:50 -08:00
parent 4e861f19ca
commit da76be8927
8 changed files with 148 additions and 5 deletions

View file

@ -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