diff options
Diffstat (limited to 'sc/source/core/opencl/op_statistical.cxx')
-rw-r--r-- | sc/source/core/opencl/op_statistical.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sc/source/core/opencl/op_statistical.cxx b/sc/source/core/opencl/op_statistical.cxx index d2ece0d82d27..839b46c3c2c9 100644 --- a/sc/source/core/opencl/op_statistical.cxx +++ b/sc/source/core/opencl/op_statistical.cxx @@ -5661,14 +5661,14 @@ void OpMedian::GenSlidingWindowFunction( ss << " int nSize =endFlag- startFlag ;\n"; ss << " if (nSize & 1)\n"; ss << " {\n"; - ss << " tmp = "<<vSubArguments[0]->GetNameAsString(); + ss << " tmp = "<<vSubArguments[0]->GetName(); ss << " [startFlag+nSize/2];\n"; ss << " }\n"; ss << " else\n"; ss << " {\n"; - ss << " tmp =("<<vSubArguments[0]->GetNameAsString(); + ss << " tmp =("<<vSubArguments[0]->GetName(); ss << " [startFlag+nSize/2]+"; - ss << vSubArguments[0]->GetNameAsString(); + ss << vSubArguments[0]->GetName(); ss << " [startFlag+nSize/2-1])/2;\n"; ss << " }\n"; ss <<" return tmp;\n"; |