Commit 9da02d2c authored by Chris Cantwell's avatar Chris Cantwell

Fix out of bounds error.

parent 9aefc5d5
......@@ -259,10 +259,11 @@ void InputSemtex::Process(po::variables_map &vm)
swap_endian(tmp);
}
double* x = &tmp[0];
for (int k = 0; k < nelmt; ++k)
{
std::copy(&tmp[k * elmtSize], &tmp[(k+1) * elmtSize],
data + k * offset + elSizeJ);
std::copy(x, x + elmtSize, data + k * offset + elSizeJ);
x += elmtSize;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment