diff options
author | Jelle van der Waa <jelle@vdwaa.nl> | 2013-09-10 22:39:24 +0200 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2013-09-11 11:41:02 +0000 |
commit | 6e066e4abe7cac72d31323859e37bfa3e0af82b2 (patch) | |
tree | 792dff9a93403c8703e52002dc4a4d9b8031d133 /sal/qa/inc | |
parent | 4f702470a2c5f5521209203f0d20f768ef274d67 (diff) |
sal: fdo#39625 Make existing cppunittests work
Change-Id: I6bd34f0deaf246bc5898532377d996fcefc88cbc
Reviewed-on: https://gerrit.libreoffice.org/5906
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sal/qa/inc')
-rw-r--r-- | sal/qa/inc/valueequal.hxx | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/sal/qa/inc/valueequal.hxx b/sal/qa/inc/valueequal.hxx index 162d1330f9df..752a875e8058 100644 --- a/sal/qa/inc/valueequal.hxx +++ b/sal/qa/inc/valueequal.hxx @@ -56,9 +56,6 @@ bool is_equal(T x, T y, sal_Int16 _nPrec) y = -y; } - // LLA: due to a bug in printf with '%f' and long double within linux environment - // we have to use %lf instead. - if (_nPrec != PREC_long_double) { printf("double equal: %.20f\n", x); @@ -76,18 +73,18 @@ bool is_equal(T x, T y, sal_Int16 _nPrec) if (_nPrec != PREC_long_double) printf("nPrecOfN is %d\n", nPrecOfN); - long double nPrec = pow(0.1, -nPrecOfN); + double nPrec = pow(0.1, -nPrecOfN); if (_nPrec != PREC_long_double) printf(" prec: %.20f\n", nPrec); - long double nDelta = fabs( x - y ) ; + double nDelta = fabs( x - y ) ; if (_nPrec != PREC_long_double) { printf(" delta: %.20f\n", nDelta); printf(" nPrec: %.20f\n", nPrec); - printf("delta must be less or equal to prec!\n\n"); + printf("delta must be less or equal to prec\n\n"); } if (nDelta > nPrec) |