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
This commit is contained in:
Jeremy Nimmer 2001-07-02 05:16:24 +00:00 committed by Tom Tromey
parent 21266f819a
commit e2a6abb6d5
2 changed files with 8 additions and 2 deletions

View File

@ -1,3 +1,9 @@
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

View File

@ -1,4 +1,4 @@
/* 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;
}
}