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:
parent
21266f819a
commit
e2a6abb6d5
@ -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
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user