Fix Decimal64.equals()
[yangtools.git] / yang / yang-common / src / main / java / org / opendaylight / yangtools / yang / common / Decimal64.java
index e1039be4cfbe193c46d841ce08bb66f16cfe8fda..216409a673e985cf8e63e97e4dbe77a76fe8a82b 100644 (file)
@@ -372,7 +372,7 @@ public class Decimal64 extends Number implements CanonicalValue<Decimal64> {
         }
 
         // We need to normalize both
-        return intPart() == other.intPart() && fracPart() == fracPart();
+        return intPart() == other.intPart() && fracPart() == other.fracPart();
     }
 
     @Override