summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sc/source/core/opencl/op_financial.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/sc/source/core/opencl/op_financial.cxx b/sc/source/core/opencl/op_financial.cxx
index e4ee49d8d123..771635510c54 100644
--- a/sc/source/core/opencl/op_financial.cxx
+++ b/sc/source/core/opencl/op_financial.cxx
@@ -1066,6 +1066,9 @@ void IRR::GenSlidingWindowFunction(std::stringstream &ss,
ss << " if (fEps < Epsilon)\n";
ss << " return x;\n";
ss << " else\n";
+ // FIXME: This is of course horribly wrong. 523 is the error code NoConvergence, and this should
+ // be CreateDoubleError(523). Ditto for the other occurrences of 523 in the OpenCL code
+ // generated in this file.
ss << " return (double)523;\n";
ss << "}";
}