diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2012-09-15 13:16:50 +0200 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2012-09-15 13:16:50 +0200 |
commit | fb98459e66461f5ff82d849decb170ee0d81a391 (patch) | |
tree | 821b9d33d1b10b73a779282aad00e097a6d21696 /sal | |
parent | f5beefb2eaf4bc513aebdc11355890dff3f040fa (diff) |
Fix comparison
Change-Id: Id2db7abdec7373082f85fb9d8479427d09cc0a12
Diffstat (limited to 'sal')
-rw-r--r-- | sal/qa/rtl/oustring/rtl_OUString2.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sal/qa/rtl/oustring/rtl_OUString2.cxx b/sal/qa/rtl/oustring/rtl_OUString2.cxx index eebbcc6b2f4a..f69b51797609 100644 --- a/sal/qa/rtl/oustring/rtl_OUString2.cxx +++ b/sal/qa/rtl/oustring/rtl_OUString2.cxx @@ -270,7 +270,7 @@ sal_Int16 SAL_CALL checkPrecisionSize() volatile T nValue = nCalcValue + static_cast<T>(0.1); volatile T dSub = nValue - nCalcValue; // ----- 0.11 ---- 0.1 ---- 0.09 ----- - if (0.11 > dSub && dSub < 0.09) + if (0.11 > dSub && dSub > 0.09) { // due to the fact, that the value is break down we sub 1 from the precision value // but to suppress this, we start at zero, precision is i+1 till here --i; |