diff options
-rw-r--r-- | sc/source/core/opencl/op_statistical.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/core/opencl/op_statistical.cxx b/sc/source/core/opencl/op_statistical.cxx index d47c4463ce1b..e6fb8e673cb1 100644 --- a/sc/source/core/opencl/op_statistical.cxx +++ b/sc/source/core/opencl/op_statistical.cxx @@ -194,7 +194,7 @@ void OpVar::GenSlidingWindowFunction(std::stringstream &ss, } } ss << " if (fCount <= 1.0)\n"; - ss << " return DBL_MAX;\n"; + ss << " return CreateDoubleError(errDivisionByZero);\n"; ss << " else\n"; ss << " return vSum * pow(fCount - 1.0,-1.0);\n"; ss << "}\n"; |