[svn-r12279] Purpose:
Bug fix Description: When variables were declared in for loops C++ compiler on Cray X1 scoped them oddly, leading to compilation errors. Solution: Moved variable declarations out of for loops (where they probably shouldn't have been anyway) to the beginning of the function. Platforms tested: mir, Cray X1 (minor change)
This commit is contained in:
@@ -84,7 +84,7 @@ int main(void)
|
||||
ptable.ResetIndex();
|
||||
|
||||
/* Iterate through packets, read each one back */
|
||||
for(int x=0; x<5; x++)
|
||||
for(x=0; x<5; x++)
|
||||
{
|
||||
err = ptable.GetNextPacket( &(readBuffer[x]) );
|
||||
if(err < 0)
|
||||
|
||||
Reference in New Issue
Block a user