Skip to content

Commit

Permalink
Fixed GainCalibrationTest failure
Browse files Browse the repository at this point in the history
  • Loading branch information
dwvisser committed Dec 23, 2024
1 parent e7b0965 commit d5d45c2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/main/java/jam/sort/GainCalibration.java
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,10 @@ private void readGains(final InputStream input, final int rows,
final StreamTokenizer tokenizer = new StreamTokenizer(lnr);
tokenizer.eolIsSignificant(false);
for (int i = 0; i < rows; i++) {
tokenizer.nextToken();
final int ttype = tokenizer.nextToken();
if (ttype == StreamTokenizer.TT_EOF) {
break;
}
final int parameter = (int) tokenizer.nval;
tokenizer.nextToken();
final double gain = tokenizer.nval;
Expand Down

0 comments on commit d5d45c2

Please sign in to comment.