correction in last commit

This commit is contained in:
Christian Zimmermann 2019-03-18 13:11:07 +01:00
parent 389e4ec0a3
commit b2290e14e5

View file

@ -34,7 +34,7 @@ namespace MultiArrayHelper
const size_t nn = n*type_size;
const size_t off = nn%N;
const size_t nnx = (off == 0) ? nn : nn + N - off;
const size_t nnd = nnx/4;
const size_t nnd = nnx/N;
VX* vx = new VX[nnd];
return reinterpret_cast<T*>(vx);
}