Skip to content
Snippets Groups Projects
Commit b66bd535 authored by Thomas Jahns's avatar Thomas Jahns :cartwheel:
Browse files

Move variable definition into block using it.

parent 65286312
No related branches found
No related tags found
2 merge requests!91Add alternative code path for huge buffers.,!89Miscellaneous fixes and CDI-PIO improvements
......@@ -714,7 +714,6 @@ fillPartExts(const int *partSizes,
size_t headerIdx)
{
int conversion = (wHECast(clientBuf[0].mem))[headerIdx].id;
int varID = wHECast(clientBuf[0].mem)[headerIdx].specific.dataRecord.varID;
size_t elemSize
= conversion == DATA_HEADER_FLOAT ? sizeof (float) : sizeof (double);
#ifdef USE_XT_REDIST_P2P_AEXT_NEW
......@@ -726,6 +725,7 @@ fillPartExts(const int *partSizes,
struct Xt_offset_ext *partExts = extRes.partExts
= Malloc(numClients * sizeof (partExts[0]));
#ifdef USE_XT_REDIST_P2P_AEXT_NEW
int varID = wHECast(clientBuf[0].mem)[headerIdx].specific.dataRecord.varID;
for (size_t clientIdx = 0; clientIdx < numClients; ++clientIdx)
{
unsigned char *clientMem = clientBuf[clientIdx].mem;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment