summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorI-Jui (Ray) Sung <ray@multicorewareinc.com>2013-11-01 13:04:04 -0500
committerI-Jui (Ray) Sung <ray@multicorewareinc.com>2013-11-01 13:04:04 -0500
commit57a0008380254104656d31924243c92cec9cb79d (patch)
tree3474ca3b442851f9717272761853ceb3f9f9c20b /sc
parent8e88765cc67b42755b6950dccb24f771c1e1dc83 (diff)
GPU Calc: fixed a compiler warning
Change-Id: Ia468731911f4b492b85ede63a9646fe28ca63cd8
Diffstat (limited to 'sc')
-rw-r--r--sc/source/core/opencl/op_financial.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sc/source/core/opencl/op_financial.cxx b/sc/source/core/opencl/op_financial.cxx
index ff167e0f1675..f2ae1003a426 100644
--- a/sc/source/core/opencl/op_financial.cxx
+++ b/sc/source/core/opencl/op_financial.cxx
@@ -1963,11 +1963,11 @@ void OpPMT::GenSlidingWindowFunction(std::stringstream &ss,
ss << "int gid0 = get_global_id(0);\n ";
ss<<"double tmp0,tmp1,tmp2;\n ";
ss<<"double tmp3=0,tmp4=0;\n ";
- unsigned i = vSubArguments.size();
+ size_t i = vSubArguments.size();
size_t nItems = 0;
ss <<"\n ";
//while (i-- > 1)
- for (size_t i = 0; i < vSubArguments.size(); i++)
+ for (i = 0; i < vSubArguments.size(); i++)
{
FormulaToken *pCur = vSubArguments[i]->GetFormulaToken();
assert(pCur);