Commit e2a6abb6 by Jeremy Nimmer Committed by Tom Tromey

For PR libgcj/3523:

2001-07-01  Jeremy Nimmer  <jwnimmer@alum.mit.edu>

	For PR libgcj/3523:
	* java/io/LineNumberReader.java (reset): Pass correct arguments to
	countLines.

From-SVN: r43683
parent 21266f81
2001-07-01 Jeremy Nimmer <jwnimmer@alum.mit.edu>
For PR libgcj/3523:
* java/io/LineNumberReader.java (reset): Pass correct arguments to
countLines.
2001-06-27 Tom Tromey <tromey@redhat.com>
* gnu/gcj/convert/IOConverter.java: Manually maintained alias now
......
/* Copyright (C) 1998, 1999 Free Software Foundation
/* Copyright (C) 1998, 1999, 2001 Free Software Foundation
This file is part of libgcj.
......@@ -94,7 +94,7 @@ public class LineNumberReader extends BufferedReader
if (markPos > 0 && pos > markPos && buffer[markPos-1] == '\r'
&& buffer[markPos] == '\n')
lineNumber--;
lineNumber -= countLines(buffer, pos, markPos);
lineNumber -= countLines(buffer, markPos, pos - markPos);
pos = markPos;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment