sc/source/core/opencl/formulagroupcl.cxx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-)
New commits: commit 6490772ace0f8e30923952c8c01d6c9baa755085 Author: Tor Lillqvist <t...@collabora.com> Date: Tue Feb 10 21:55:14 2015 +0200 Avoid OpenCL compilation error in some cases We do need to use GenSlidingWindowDeclRef(). We can't assume it is always a vector element that is taking part in the calculation. Change-Id: Iec3be0477f52c995ec77c8c6aca57365c965ab09 Reviewed-on: https://gerrit.libreoffice.org/14407 Tested-by: Markus Mohrhard <markus.mohrh...@googlemail.com> Reviewed-by: Markus Mohrhard <markus.mohrh...@googlemail.com> diff --git a/sc/source/core/opencl/formulagroupcl.cxx b/sc/source/core/opencl/formulagroupcl.cxx index a60f9ed..f4c4d68 100644 --- a/sc/source/core/opencl/formulagroupcl.cxx +++ b/sc/source/core/opencl/formulagroupcl.cxx @@ -2170,8 +2170,8 @@ public: if (argno == 1) { ss << - "if (isnan(" << vSubArguments[argno]->GetName() << "[gid0])) {\n" - " if (GetDoubleErrorValue(" << vSubArguments[argno]->GetName() << "[gid0]) == errNoValue)\n" + "if (isnan(" << vSubArguments[argno]->GenSlidingWindowDeclRef() << ")) {\n" + " if (GetDoubleErrorValue(" << vSubArguments[argno]->GenSlidingWindowDeclRef() << ") == errNoValue)\n" " return CreateDoubleError(errDivisionByZero);\n" "}\n"; return true; @@ -2179,9 +2179,9 @@ public: else if (argno == 0) { ss << - "if (isnan(" << vSubArguments[argno]->GetName() << "[gid0])) {\n" - " if (GetDoubleErrorValue(" << vSubArguments[argno]->GetName() << "[gid0]) == errNoValue) {\n" - " if (" << vSubArguments[1]->GetName() << "[gid0] == 0)\n" + "if (isnan(" << vSubArguments[argno]->GenSlidingWindowDeclRef() << ")) {\n" + " if (GetDoubleErrorValue(" << vSubArguments[argno]->GenSlidingWindowDeclRef() << ") == errNoValue) {\n" + " if (" << vSubArguments[1]->GenSlidingWindowDeclRef() << " == 0)\n" " return CreateDoubleError(errDivisionByZero);\n" " return 0;\n" " }\n" _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits