mirror of
https://gitlab.isc.org/isc-projects/kea
synced 2025-08-30 21:45:37 +00:00
[433-update-yang-models] Moved to fabs to near double equal
This commit is contained in:
committed by
Tomek Mrugalski
parent
6ae3245f23
commit
2ff8d3db8b
@@ -978,7 +978,7 @@ IntElement::equals(const Element& other) const {
|
||||
bool
|
||||
DoubleElement::equals(const Element& other) const {
|
||||
return (other.getType() == Element::real) &&
|
||||
(str() == other.str());
|
||||
(fabs(d - other.doubleValue()) < 1e-14);
|
||||
}
|
||||
|
||||
bool
|
||||
|
Reference in New Issue
Block a user