Fixed frexp compilation error

This commit is contained in:
Adrian Krupa
2015-11-29 20:53:04 +01:00
parent 0d2fd871af
commit 8fd8c56074
3 changed files with 46 additions and 2 deletions

View File

@@ -662,7 +662,7 @@ namespace detail
{
GLM_STATIC_ASSERT(std::numeric_limits<genType>::is_iec559, "'frexp' only accept floating-point inputs");
return std::frexp(x, exp);
return std::frexp(x, &exp);
}
template <typename T, precision P>
@@ -670,7 +670,7 @@ namespace detail
{
GLM_STATIC_ASSERT(std::numeric_limits<T>::is_iec559, "'frexp' only accept floating-point inputs");
return tvec1<T, P>(std::frexp(x.x, exp.x));
return tvec1<T, P>(std::frexp(x.x, &exp.x));
}
template <typename T, precision P>