diff options
Diffstat (limited to 'libjava/java/nio/Buffer.java')
-rw-r--r-- | libjava/java/nio/Buffer.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libjava/java/nio/Buffer.java b/libjava/java/nio/Buffer.java index c24259f..c7f01b6 100644 --- a/libjava/java/nio/Buffer.java +++ b/libjava/java/nio/Buffer.java @@ -148,11 +148,11 @@ public abstract class Buffer if ((newLimit < 0) || (newLimit > cap)) throw new IllegalArgumentException (); - if (newLimit <= mark) + if (newLimit < mark) mark = -1; if (pos > newLimit) - pos = newLimit - 1; + pos = newLimit; limit = newLimit; return this; |