@@ -16,8 +16,8 @@ namespace detail
16
16
{
17
17
GLM_FUNC_QUALIFIER static vec<L, floatType, Q> call (vec<L, T, Q> const & v)
18
18
{
19
- floatType const Min = static_cast <floatType>(std::numeric_limits<T>::min ());
20
- floatType const Max = static_cast <floatType>(std::numeric_limits<T>::max ());
19
+ floatType const Min = static_cast <floatType>(( std::numeric_limits<T>::min) ());
20
+ floatType const Max = static_cast <floatType>(( std::numeric_limits<T>::max) ());
21
21
return (vec<L, floatType, Q>(v) - Min) / (Max - Min) * static_cast <floatType>(2 ) - static_cast <floatType>(1 );
22
22
}
23
23
};
@@ -27,7 +27,7 @@ namespace detail
27
27
{
28
28
GLM_FUNC_QUALIFIER static vec<L, floatType, Q> call (vec<L, T, Q> const & v)
29
29
{
30
- return vec<L, floatType, Q>(v) / static_cast <floatType>(std::numeric_limits<T>::max ());
30
+ return vec<L, floatType, Q>(v) / static_cast <floatType>(( std::numeric_limits<T>::max) ());
31
31
}
32
32
};
33
33
@@ -49,7 +49,7 @@ namespace detail
49
49
{
50
50
GLM_FUNC_QUALIFIER static vec<L, T, Q> call (vec<L, floatType, Q> const & v)
51
51
{
52
- floatType const Max = static_cast <floatType>(std::numeric_limits<T>::max ()) + static_cast <floatType>(0.5 );
52
+ floatType const Max = static_cast <floatType>(( std::numeric_limits<T>::max) ()) + static_cast <floatType>(0.5 );
53
53
vec<L, floatType, Q> const Scaled (v * Max);
54
54
vec<L, T, Q> const Result (Scaled - static_cast <floatType>(0.5 ));
55
55
return Result;
@@ -61,7 +61,7 @@ namespace detail
61
61
{
62
62
GLM_FUNC_QUALIFIER static vec<L, T, Q> call (vec<L, floatType, Q> const & v)
63
63
{
64
- return vec<L, T, Q>(vec<L, floatType, Q>(v) * static_cast <floatType>(std::numeric_limits<T>::max ()));
64
+ return vec<L, T, Q>(vec<L, floatType, Q>(v) * static_cast <floatType>(( std::numeric_limits<T>::max) ()));
65
65
}
66
66
};
67
67
0 commit comments