diff options
author | Luboš Luňák <l.lunak@collabora.com> | 2022-08-31 16:43:29 +0200 |
---|---|---|
committer | Luboš Luňák <l.lunak@collabora.com> | 2022-09-01 12:21:24 +0200 |
commit | 1e3cf15e2d090671f0735faa83d8c57bea0a37d6 (patch) | |
tree | 97da82a2308c475b4c75edf7058a38c8d0644a4f /sc | |
parent | e306e86ac70e6d47d779f0b63ea76b3a72645b5a (diff) |
do not return "random" values from opencl FTEST if it can't handle something
Change-Id: I539d184b015b79ce0511656ab5140bce8698397d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/139075
Tested-by: Jenkins
Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/core/opencl/op_statistical.cxx | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/sc/source/core/opencl/op_statistical.cxx b/sc/source/core/opencl/op_statistical.cxx index b325a68ca41c..1225306b69fb 100644 --- a/sc/source/core/opencl/op_statistical.cxx +++ b/sc/source/core/opencl/op_statistical.cxx @@ -6529,13 +6529,9 @@ void OpFTest::GenSlidingWindowFunction(outputstream &ss, ss << " }\n"; } else if (pCurSub->GetType() == formula::svSingleVectorRef) - { - ss << "return HUGE_VAL"; - } + throw Unhandled(__FILE__, __LINE__); else if (pCurSub->GetType() == formula::svDouble) - { - ss << "return HUGE_VAL"; - } + throw Unhandled(__FILE__, __LINE__); } ss << " double fS1 = (fSumSqr1-fSum1*fSum1/length0)/(length0-1.0);\n" " double fS2 = (fSumSqr2-fSum2*fSum2/length1)/(length1-1.0);\n" |