aboutsummaryrefslogtreecommitdiff
path: root/libjava/java/nio/Buffer.java
diff options
context:
space:
mode:
authorMichael Koch <konqueror@gmx.de>2003-05-19 06:59:23 +0000
committerMichael Koch <mkoch@gcc.gnu.org>2003-05-19 06:59:23 +0000
commit10832fce7c6b2de6ef8af9b1f7a123dfdb6fb7a9 (patch)
tree2bc55e0ef3fca053d995f689e0812505f3e152b2 /libjava/java/nio/Buffer.java
parent307b599c91ee93049fd69228b9d59b6ea2e030ef (diff)
downloadgcc-10832fce7c6b2de6ef8af9b1f7a123dfdb6fb7a9.zip
gcc-10832fce7c6b2de6ef8af9b1f7a123dfdb6fb7a9.tar.gz
gcc-10832fce7c6b2de6ef8af9b1f7a123dfdb6fb7a9.tar.bz2
2003-05-19 Michael Koch <konqueror@gmx.de>
* gnu/java/nio/ByteBufferImpl.java (putLong): Fixed conversion to bytes. (putDouble): Fixed conversion to bytes. * gnu/java/nio/DirectByteBufferImpl.java (putLong): Fixed conversion to bytes. (putDouble): Fixed conversion to bytes. * gnu/java/nio/FileLockImpl.java (isValid): Reformatted. * java/nio/Buffer.java (Buffer): Fixed off-by-one bug in handling mark. * java/nio/ByteBuffer.java: Added newline. * java/nio/CharBuffer.java (toString): Don't use relative get to get string data. From-SVN: r66946
Diffstat (limited to 'libjava/java/nio/Buffer.java')
-rw-r--r--libjava/java/nio/Buffer.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/libjava/java/nio/Buffer.java b/libjava/java/nio/Buffer.java
index 7d291be..693765f 100644
--- a/libjava/java/nio/Buffer.java
+++ b/libjava/java/nio/Buffer.java
@@ -57,7 +57,7 @@ public abstract class Buffer
limit (limit);
position (position);
- if (mark > 0)
+ if (mark >= 0)
{
if (mark > pos)
throw new IllegalArgumentException ();