Fixed abs just not doing anything
This commit is contained in:
parent
8ab328fcfe
commit
e96899ceba
@ -108,7 +108,7 @@ namespace rexy{
|
|||||||
}
|
}
|
||||||
template<class T>
|
template<class T>
|
||||||
constexpr T abs(const T& val){
|
constexpr T abs(const T& val){
|
||||||
return val > 0 ? val : val;
|
return val > 0 ? val : -val;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user