diff options
-rw-r--r-- | registry/tools/regcompare.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/registry/tools/regcompare.cxx b/registry/tools/regcompare.cxx index d5e33c7977e2..901f719e6d68 100644 --- a/registry/tools/regcompare.cxx +++ b/registry/tools/regcompare.cxx @@ -25,6 +25,7 @@ #include "options.hxx" #include <rtl/ustring.hxx> +#include <rtl/math.hxx> #include <osl/diagnose.h> #include <stdio.h> @@ -584,7 +585,7 @@ static sal_uInt32 checkConstValue(Options_Impl const & options, } break; case RT_TYPE_FLOAT: - if (constValue1.m_value.aFloat != constValue2.m_value.aFloat) + if (!rtl::math::approxEqual(constValue1.m_value.aFloat, constValue2.m_value.aFloat)) { if ( options.forceOutput() && !options.unoTypeCheck() ) { @@ -596,7 +597,7 @@ static sal_uInt32 checkConstValue(Options_Impl const & options, } break; case RT_TYPE_DOUBLE: - if (constValue1.m_value.aDouble != constValue2.m_value.aDouble) + if (!rtl::math::approxEqual(constValue1.m_value.aDouble, constValue2.m_value.aDouble)) { if ( options.forceOutput() && !options.unoTypeCheck() ) { |