Fixed datatype truncation in Diff() template.
This commit is contained in:
parent
ac00568183
commit
e09a04a23a
@ -529,7 +529,7 @@ inline float GetSpecialSignf( float a_Val )
|
||||
|
||||
|
||||
|
||||
template<class T> inline int Diff(T a_Val1, T a_Val2)
|
||||
template<class T> inline T Diff(T a_Val1, T a_Val2)
|
||||
{
|
||||
return std::abs(a_Val1 - a_Val2);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user