summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2016-10-06 16:39:37 +0300
committerTor Lillqvist <tml@collabora.com>2016-10-06 16:47:12 +0300
commitfe5e9610df64709cf505c0b5dc74aef2f55c1b77 (patch)
treeee05e62207e3cbc1b10b626b81a831e4441ff553 /sc
parent3456004fd5fce1bb2545e1eded708a2366ad73bf (diff)
Add FIXME
I just can't even. Change-Id: Iab3572847bcbe63cb3c19bb027c8a6388c90fd59
Diffstat (limited to 'sc')
-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 << "}";
}