Skip to content

Commit

Permalink
update 2022-1-26
Browse files Browse the repository at this point in the history
  • Loading branch information
sdragonx committed Jan 26, 2022
1 parent 1772195 commit f09b575
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions glm/detail/functions.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ GLM_API T ceil(const T& value)
return static_cast<T>(std::ceil(static_cast<double>(value)));
}

template<typename T>
GLM_API T clamp(const T& value, const T& minVal, const T& maxVal)
template<typename T, typename argT>
GLM_API T clamp(const T& value, const argT& minVal, const argT& maxVal)
{
return min<T>(max<T>(value, minVal), maxVal);
}
Expand Down Expand Up @@ -153,7 +153,7 @@ GLM_API vec<N, T> ceil(const vec<N, T>& v)
template<size_t N, typename T>
GLM_API vec<N, T> clamp(const vec<N, T>& v, T minVal, T maxVal)
{
return compute<T, N, T>(clamp<T>, v, minVal, maxVal);
return compute<T, N, T>(clamp<T, T>, v, minVal, maxVal);
}

template<size_t N, typename T>
Expand Down

0 comments on commit f09b575

Please sign in to comment.