Fixed -Weverything warnings
This commit is contained in:
parent
5212c26da2
commit
3a06085edd
@ -3,6 +3,7 @@
|
|||||||
|
|
||||||
#include "../geometric.hpp"
|
#include "../geometric.hpp"
|
||||||
#include "../exponential.hpp"
|
#include "../exponential.hpp"
|
||||||
|
#include "../trigonometric.hpp"
|
||||||
#include <cstdlib>
|
#include <cstdlib>
|
||||||
#include <ctime>
|
#include <ctime>
|
||||||
#include <cassert>
|
#include <cassert>
|
||||||
@ -331,8 +332,8 @@ namespace detail
|
|||||||
template<typename T>
|
template<typename T>
|
||||||
GLM_FUNC_QUALIFIER vec<2, T, defaultp> circularRand(T Radius)
|
GLM_FUNC_QUALIFIER vec<2, T, defaultp> circularRand(T Radius)
|
||||||
{
|
{
|
||||||
T a = linearRand(T(0), T(6.283185307179586476925286766559f));
|
T a = linearRand(T(0), static_cast<T>(6.283185307179586476925286766559));
|
||||||
return vec<2, T, defaultp>(cos(a), sin(a)) * Radius;
|
return vec<2, T, defaultp>(glm::cos(a), glm::sin(a)) * Radius;
|
||||||
}
|
}
|
||||||
|
|
||||||
template<typename T>
|
template<typename T>
|
||||||
|
@ -283,7 +283,7 @@ int test_diskRand()
|
|||||||
|
|
||||||
{
|
{
|
||||||
float ResultFloat = 0.0f;
|
float ResultFloat = 0.0f;
|
||||||
double ResultDouble = 0.0f;
|
double ResultDouble = 0.0;
|
||||||
|
|
||||||
for(std::size_t i = 0; i < TestSamples; ++i)
|
for(std::size_t i = 0; i < TestSamples; ++i)
|
||||||
{
|
{
|
||||||
@ -305,7 +305,7 @@ int test_ballRand()
|
|||||||
|
|
||||||
{
|
{
|
||||||
float ResultFloat = 0.0f;
|
float ResultFloat = 0.0f;
|
||||||
double ResultDouble = 0.0f;
|
double ResultDouble = 0.0;
|
||||||
|
|
||||||
for(std::size_t i = 0; i < TestSamples; ++i)
|
for(std::size_t i = 0; i < TestSamples; ++i)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user