sc/source/core/opencl/op_financial.cxx | 3 +++ 1 file changed, 3 insertions(+)
New commits: commit 3156228b1d737ca47ff4e959a6e357581af3ec2e Author: Luboš Luňák <l.lu...@collabora.com> AuthorDate: Tue Dec 4 13:25:18 2018 +0100 Commit: Luboš Luňák <l.lu...@collabora.com> CommitDate: Wed Dec 5 11:03:14 2018 +0100 OpenCL FVSCHEDULE() error checking Change-Id: If93a9ea6e0265ba616b4a1fbe138d310ea3e8693 Reviewed-on: https://gerrit.libreoffice.org/64546 Tested-by: Jenkins Reviewed-by: Luboš Luňák <l.lu...@collabora.com> diff --git a/sc/source/core/opencl/op_financial.cxx b/sc/source/core/opencl/op_financial.cxx index 6f728cbbbdd2..66d1f9d18e28 100644 --- a/sc/source/core/opencl/op_financial.cxx +++ b/sc/source/core/opencl/op_financial.cxx @@ -750,8 +750,11 @@ void OpMDuration::GenSlidingWindowFunction(std::stringstream& ss, void Fvschedule::GenSlidingWindowFunction( std::stringstream &ss, const std::string &sSymName, SubArguments &vSubArguments) { + CHECK_PARAMETER_COUNT( 2, 2 ); FormulaToken* pCur = vSubArguments[1]->GetFormulaToken(); assert(pCur); + if(vSubArguments[0]->GetFormulaToken()->GetType() != formula::svDoubleVectorRef) + throw Unhandled( __FILE__, __LINE__ ); const formula::DoubleVectorRefToken* pCurDVR = static_cast<const formula::DoubleVectorRefToken *>(pCur); size_t nCurWindowSize = pCurDVR->GetRefRowSize(); _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits