diff --git a/glm/detail/func_common.inl b/glm/detail/func_common.inl index 9634255d..2c32626f 100644 --- a/glm/detail/func_common.inl +++ b/glm/detail/func_common.inl @@ -668,7 +668,7 @@ namespace detail { GLM_STATIC_ASSERT(std::numeric_limits::is_iec559, "'frexp' only accept floating-point inputs"); - return std::frexp(x, exp); + return std::frexp(x, &exp); } template @@ -676,7 +676,7 @@ namespace detail { GLM_STATIC_ASSERT(std::numeric_limits::is_iec559, "'frexp' only accept floating-point inputs"); - return tvec1(std::frexp(x.x, exp.x)); + return tvec1(std::frexp(x.x, &exp.x)); } template diff --git a/test/core/core_func_common.cpp b/test/core/core_func_common.cpp index ec86ec76..780151e5 100644 --- a/test/core/core_func_common.cpp +++ b/test/core/core_func_common.cpp @@ -1100,7 +1100,7 @@ namespace sign { int Error = 0; - glm::uint32 const Count = Samples; + glm::int32 const Count = static_cast(Samples); std::clock_t Timestamp0 = std::clock(); glm::int32 Sum = 0;