Fixed compilation errors with clang.

H: Enter commit message.  Lines beginning with 'HG:' are removed.
This commit is contained in:
Benoit Steiner
2014-11-13 19:13:17 -08:00
parent ec785b0180
commit 1d3c8306f8
4 changed files with 7 additions and 9 deletions

View File

@@ -848,8 +848,8 @@ struct TensorEvaluator<const TensorContractionOp<Indices, LeftArgType, RightArgT
const Index kc = blocking.kc();
const Index mc = (std::min)(m, blocking.mc());
const Index nc = (std::min)(n, blocking.nc());
int sizeA = mc * kc;
int sizeB = kc * nc;
const Index sizeA = mc * kc;
const Index sizeB = kc * nc;
LhsScalar* blockA = static_cast<LhsScalar *>(this->m_device.allocate(sizeA * sizeof(LhsScalar)));
RhsScalar* blockB = static_cast<RhsScalar *>(this->m_device.allocate(sizeB * sizeof(RhsScalar)));