Skip to content
Permalink
Browse files

ofz#1029 use correct loop index

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 2d6253c7a692a3d92785dd990fce7256ea05e794
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/lib/StarWriterStruct.cxx
@@ -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);
}

0 comments on commit 2d6253c

Please sign in to comment.
You can’t perform that action at this time.