Commit 7452072d authored by fabianw's avatar fabianw
Browse files

changed void pointer to char

parent a7b35095
......@@ -203,11 +203,11 @@ private:
if (allsize[rank] > 0)
{
tarr = new Triangle[allsize[rank]];
void* const base = &tarr[0].vertices[0][0];
char* const base = (char*)&tarr[0].vertices[0][0];
for (size_t i=0; i<allsize[rank]; ++i)
{
void* const dst = base + i*sizeof(Triangle);
const void* const src = &tList[i].vertices[0][0];
char* const dst = base + i*sizeof(Triangle);
const char* const src = (char*)&tList[i].vertices[0][0];
memcpy(dst, src, sizeof(Triangle));
}
// for (size_t i=0; i<allsize[rank]; ++i)
......
Supports Markdown
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