Fixed warnings

This commit is contained in:
Christophe Riccio
2017-08-09 22:40:33 +02:00
parent b936761960
commit 5d77861141
4 changed files with 18 additions and 16 deletions

View File

@@ -203,7 +203,7 @@ int test_linearRand()
{
float ResultFloat = 0.0f;
double ResultDouble = 0.0f;
double ResultDouble = 0.0;
for(std::size_t i = 0; i < TestSamples; ++i)
{
ResultFloat += glm::linearRand(-1.0f, 1.0f);
@@ -225,8 +225,8 @@ int test_circularRand()
{
std::size_t Max = TestSamples;
float ResultFloat = 0.0f;
double ResultDouble = 0.0f;
double Radius = 2.0f;
double ResultDouble = 0.0;
double Radius = 2.0;
for(std::size_t i = 0; i < Max; ++i)
{
@@ -251,9 +251,9 @@ int test_sphericalRand()
float ResultFloatA = 0.0f;
float ResultFloatB = 0.0f;
float ResultFloatC = 0.0f;
double ResultDoubleA = 0.0f;
double ResultDoubleB = 0.0f;
double ResultDoubleC = 0.0f;
double ResultDoubleA = 0.0;
double ResultDoubleB = 0.0;
double ResultDoubleC = 0.0;
for(std::size_t i = 0; i < Max; ++i)
{