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
+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.
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;
}
}