summaryrefslogtreecommitdiff
path: root/stoc
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2019-01-30 14:28:53 +0100
committerStephan Bergmann <sbergman@redhat.com>2019-01-31 10:59:40 +0100
commit553fcbbb39a674df34475fc92a1ee3410d68c215 (patch)
treea2b5d19157543f465b916fb1a799fe13ad3fa6ca /stoc
parent8da8cc3c9322e4b9438bbb5f4a80af80dbbfe008 (diff)
loplugin:unnecessaryparen (clang-cl)
Change-Id: I0cd14e0ace9c9d2fcd880477b0485295e3010b71 Reviewed-on: https://gerrit.libreoffice.org/67138 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'stoc')
-rw-r--r--stoc/source/typeconv/convert.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/stoc/source/typeconv/convert.cxx b/stoc/source/typeconv/convert.cxx
index bcde920b2942..fd644c64b820 100644
--- a/stoc/source/typeconv/convert.cxx
+++ b/stoc/source/typeconv/convert.cxx
@@ -64,11 +64,11 @@ static const sal_Int64 SAL_INT64_MIN =
/* MS Visual C++ no conversion from unsigned __int64 to double */
#ifdef _MSC_VER
-static const double DOUBLE_SAL_UINT64_MAX = (((double(SAL_INT64_MAX)) * 2) + 1);
+static const double DOUBLE_SAL_UINT64_MAX = ((double(SAL_INT64_MAX)) * 2) + 1;
static double unsigned_int64_to_double( sal_uInt64 n )
{
- sal_uInt64 n2 = (n / 3);
+ sal_uInt64 n2 = n / 3;
n -= (2 * n2);
return (static_cast<double>(static_cast<sal_Int64>(n2)) * 2.0) + static_cast<double>(static_cast<sal_Int64>(n));
}