diff options
author | Noel Grandin <noel@peralex.com> | 2016-01-27 11:07:06 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2016-02-04 06:41:19 +0000 |
commit | 4fa4b9addfaa4291096cb6de5d98c6612c36757c (patch) | |
tree | 2690bbb0ae0c077f9c76e7eca19be3364987f19d /basic/source/classes | |
parent | 5569a65ea4984f72212a44679f2125843a855a80 (diff) |
loplugin:fpcomparison in basic/
Change-Id: I76ffac6a0f0b1525c85d1995277d3ca22ef268e1
Reviewed-on: https://gerrit.libreoffice.org/21869
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'basic/source/classes')
-rw-r--r-- | basic/source/classes/sbunoobj.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/basic/source/classes/sbunoobj.cxx b/basic/source/classes/sbunoobj.cxx index da309e79b7e7..4a1541138a5a 100644 --- a/basic/source/classes/sbunoobj.cxx +++ b/basic/source/classes/sbunoobj.cxx @@ -1028,7 +1028,7 @@ Any sbxToUnoValueImpl( const SbxValue* pVar, bool bBlockConversionToSmallestType case TypeClass_DOUBLE: { double d = pVar->GetDouble(); - if( d == floor( d ) ) + if( rtl::math::approxEqual(d, floor( d )) ) { if( d >= -128 && d <= 127 ) aType = ::cppu::UnoType<sal_Int8>::get(); |