diff options
author | James Laird <jlaird@hdfgroup.org> | 2006-04-19 17:14:48 (GMT) |
---|---|---|
committer | James Laird <jlaird@hdfgroup.org> | 2006-04-19 17:14:48 (GMT) |
commit | 220fdf4113f65771ab227646b2a0207c93a26148 (patch) | |
tree | 202a94caa41ea9fab86342d372a82bd9e266cb50 /hl/c++/examples/ptExampleVL.cpp | |
parent | 3026df8a300ab30cd6d92466ce8642021d2c0c01 (diff) | |
download | hdf5-220fdf4113f65771ab227646b2a0207c93a26148.zip hdf5-220fdf4113f65771ab227646b2a0207c93a26148.tar.gz hdf5-220fdf4113f65771ab227646b2a0207c93a26148.tar.bz2 |
[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)
Diffstat (limited to 'hl/c++/examples/ptExampleVL.cpp')
-rw-r--r-- | hl/c++/examples/ptExampleVL.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hl/c++/examples/ptExampleVL.cpp b/hl/c++/examples/ptExampleVL.cpp index 9c2b21f..1b41bfb 100644 --- a/hl/c++/examples/ptExampleVL.cpp +++ b/hl/c++/examples/ptExampleVL.cpp @@ -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) |