Fix uncritical warnings in rtengine/procparams.h
This commit is contained in:
@@ -219,14 +219,15 @@ public:
|
||||
|
||||
bool operator ==(const Threshold<T> &rhs) const
|
||||
{
|
||||
if (_isDouble)
|
||||
return fabs(value[0] - rhs.value[0]) < 1e-10
|
||||
&& fabs(value[1] - rhs.value[1]) < 1e-10
|
||||
&& fabs(value[2] - rhs.value[2]) < 1e-10
|
||||
&& fabs(value[3] - rhs.value[3]) < 1e-10;
|
||||
else
|
||||
return fabs(value[0] - rhs.value[0]) < 1e-10
|
||||
&& fabs(value[1] - rhs.value[1]) < 1e-10;
|
||||
if (_isDouble) {
|
||||
return std::abs(value[0] - rhs.value[0]) < 1e-10
|
||||
&& std::abs(value[1] - rhs.value[1]) < 1e-10
|
||||
&& std::abs(value[2] - rhs.value[2]) < 1e-10
|
||||
&& std::abs(value[3] - rhs.value[3]) < 1e-10;
|
||||
} else {
|
||||
return std::abs(value[0] - rhs.value[0]) < 1e-10
|
||||
&& std::abs(value[1] - rhs.value[1]) < 1e-10;
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user