Skip to content

Commit

Permalink
ofz#1029 use correct loop index
Browse files Browse the repository at this point in the history
To be honest, I think this would be clearer as two separate reads to two
separate vars...
  • Loading branch information
dtardon committed Apr 7, 2017
1 parent 7b04b98 commit 2d6253c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/StarWriterStruct.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ bool DatabaseName::read(StarZone &zone)
}
data.m_name=libstoff::getString(text);
int positions[2];
for (int j=0; j<2; ++j) positions[i]=int(input->readULong(4));
for (int j=0; j<2; ++j) positions[j]=int(input->readULong(4));
data.m_selection=STOFFVec2i(positions[0],positions[1]);
m_dataList.push_back(data);
}
Expand Down

0 comments on commit 2d6253c

Please sign in to comment.