summaryrefslogtreecommitdiff
path: root/solenv
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2019-01-08 23:40:51 +0100
committerEike Rathke <erack@redhat.com>2019-01-10 11:55:49 +0100
commit559758a35216c0cb852de65d129154947a4d91e8 (patch)
tree0bcc62f5abf7b6cc330756ef4850fd36baf60e2f /solenv
parent60a66bd57d17a2f72fbf852faf1eaad87eac6dec (diff)
Related: tdf#44076 do not leave cast to int to undefined behaviour
... if the double is an out-of-int-range value. Also catch domain and pole and range errors. Move this to it's own sc::power() function that can be reused for example by ScMatrix::PowOp() to be congruent. Change-Id: I88331e02e6cdfb5e1dcbf81622d3fc7ce4510478 Reviewed-on: https://gerrit.libreoffice.org/65986 Tested-by: Jenkins Reviewed-by: Eike Rathke <erack@redhat.com>
Diffstat (limited to 'solenv')
-rw-r--r--solenv/clang-format/blacklist1
1 files changed, 1 insertions, 0 deletions
diff --git a/solenv/clang-format/blacklist b/solenv/clang-format/blacklist
index cb825b74afef..c86246f70eb8 100644
--- a/solenv/clang-format/blacklist
+++ b/solenv/clang-format/blacklist
@@ -10399,6 +10399,7 @@ sc/source/core/tool/interpr8.cxx
sc/source/core/tool/jumpmatrix.cxx
sc/source/core/tool/listenerquery.cxx
sc/source/core/tool/lookupcache.cxx
+sc/source/core/tool/math.cxx
sc/source/core/tool/matrixoperators.cxx
sc/source/core/tool/navicfg.cxx
sc/source/core/tool/numformat.cxx