aboutsummaryrefslogtreecommitdiffstats
path: root/host/include
diff options
context:
space:
mode:
Diffstat (limited to 'host/include')
-rw-r--r--host/include/uhd/utils/algorithm.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/host/include/uhd/utils/algorithm.hpp b/host/include/uhd/utils/algorithm.hpp
index cc935b226..8fe9cde82 100644
--- a/host/include/uhd/utils/algorithm.hpp
+++ b/host/include/uhd/utils/algorithm.hpp
@@ -55,8 +55,8 @@ namespace std{
return 0;
}
- template<class T, class T1, class T2> T clip(T val, T1 minVal, T2 maxVal){
- return std::min<T>(std::max<T>(val, minVal), maxVal);
+ template<class T> T clip(T val, T minVal, T maxVal){
+ return std::min(std::max(val, minVal), maxVal);
}
}//namespace std