summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuboš Luňák <l.lunak@collabora.com>2018-11-16 16:48:36 +0100
committerLuboš Luňák <l.lunak@collabora.com>2018-12-03 15:37:29 +0100
commit041eff7e88dc3f0d653962342c386346eb07b626 (patch)
tree01f5dbae8b4d693b55fe6e333afaef778a3958fd
parent433b1fdd3fc588cb542bb834117752dbef4e8236 (diff)
check in opencl for MROUND to take exactly 2 arguments
Otherwise the mround unittest fails in opencl mode. Change-Id: I6c8866495bbb44ff7dfc075ba4aac58d80dac7c7 Reviewed-on: https://gerrit.libreoffice.org/64240 Tested-by: Jenkins Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
-rw-r--r--sc/source/core/opencl/op_math.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/sc/source/core/opencl/op_math.cxx b/sc/source/core/opencl/op_math.cxx
index 45306aee893e..74c8dd4ceb87 100644
--- a/sc/source/core/opencl/op_math.cxx
+++ b/sc/source/core/opencl/op_math.cxx
@@ -124,6 +124,7 @@ void OpSecH::GenSlidingWindowFunction(std::stringstream &ss,
void OpMROUND::GenSlidingWindowFunction(std::stringstream &ss,
const std::string &sSymName, SubArguments &vSubArguments)
{
+ CHECK_PARAMETER_COUNT(2, 2);
ss << "\ndouble " << sSymName;
ss << "_"<< BinFuncName() <<"(";
for (size_t i = 0; i < vSubArguments.size(); i++)