summaryrefslogtreecommitdiff
path: root/java/nio
diff options
context:
space:
mode:
authorRoman Kennke <roman@kennke.org>2007-04-27 14:14:54 +0000
committerRoman Kennke <roman@kennke.org>2007-04-27 14:14:54 +0000
commit9e9c52b9d14bfef034059b61de1f63ad4511ee5a (patch)
tree7fcaf01fca0dbf7d33434954c28fef8e8a73a054 /java/nio
parent1248ab81ca244e5d3800f360479b06d556cb9f35 (diff)
downloadclasspath-9e9c52b9d14bfef034059b61de1f63ad4511ee5a.tar.gz
2007-04-27 Roman Kennke <roman@kennke.org>
* java/nio/CharViewBufferImpl.java (slice): Fixed offset for slice buffer. * java/nio/DoubleViewBufferImpl.java (slice): Fixed offset for slice buffer. * java/nio/FloatViewBufferImpl.java (slice): Fixed offset for slice buffer. * java/nio/IntViewBufferImpl.java (slice): Fixed offset for slice buffer. * java/nio/LongViewBufferImpl.java (slice): Fixed offset for slice buffer. * java/nio/ShortViewBufferImpl.java (slice): Fixed offset for slice buffer.
Diffstat (limited to 'java/nio')
-rw-r--r--java/nio/CharViewBufferImpl.java2
-rw-r--r--java/nio/DoubleViewBufferImpl.java2
-rw-r--r--java/nio/FloatViewBufferImpl.java2
-rw-r--r--java/nio/IntViewBufferImpl.java2
-rw-r--r--java/nio/LongViewBufferImpl.java2
-rw-r--r--java/nio/ShortViewBufferImpl.java2
6 files changed, 6 insertions, 6 deletions
diff --git a/java/nio/CharViewBufferImpl.java b/java/nio/CharViewBufferImpl.java
index 319831544..33bbac8b0 100644
--- a/java/nio/CharViewBufferImpl.java
+++ b/java/nio/CharViewBufferImpl.java
@@ -133,7 +133,7 @@ class CharViewBufferImpl extends CharBuffer
public CharBuffer slice ()
{
// Create a sliced copy of this object that shares its content.
- return new CharViewBufferImpl (bb, (position () >> 1) + offset,
+ return new CharViewBufferImpl (bb, (position () << 1) + offset,
remaining (), remaining (), 0, -1,
isReadOnly (), endian);
}
diff --git a/java/nio/DoubleViewBufferImpl.java b/java/nio/DoubleViewBufferImpl.java
index e860f2f80..d1399154a 100644
--- a/java/nio/DoubleViewBufferImpl.java
+++ b/java/nio/DoubleViewBufferImpl.java
@@ -130,7 +130,7 @@ final class DoubleViewBufferImpl extends DoubleBuffer
public DoubleBuffer slice ()
{
- return new DoubleViewBufferImpl (bb, (position () >> 3) + offset,
+ return new DoubleViewBufferImpl (bb, (position () << 3) + offset,
remaining(), remaining(), 0, -1,
readOnly, endian);
}
diff --git a/java/nio/FloatViewBufferImpl.java b/java/nio/FloatViewBufferImpl.java
index 55770d52a..8bb342d10 100644
--- a/java/nio/FloatViewBufferImpl.java
+++ b/java/nio/FloatViewBufferImpl.java
@@ -131,7 +131,7 @@ final class FloatViewBufferImpl extends FloatBuffer
public FloatBuffer slice ()
{
// Create a sliced copy of this object that shares its content.
- return new FloatViewBufferImpl (bb, (position () >> 2) + offset,
+ return new FloatViewBufferImpl (bb, (position () << 2) + offset,
remaining(), remaining(), 0, -1,
readOnly, endian);
}
diff --git a/java/nio/IntViewBufferImpl.java b/java/nio/IntViewBufferImpl.java
index d0b0057c1..cd8307f3e 100644
--- a/java/nio/IntViewBufferImpl.java
+++ b/java/nio/IntViewBufferImpl.java
@@ -131,7 +131,7 @@ final class IntViewBufferImpl extends IntBuffer
public IntBuffer slice ()
{
// Create a sliced copy of this object that shares its content.
- return new IntViewBufferImpl (bb, (position () >> 2) + offset,
+ return new IntViewBufferImpl (bb, (position () << 2) + offset,
remaining(), remaining(), 0, -1,
readOnly, endian);
}
diff --git a/java/nio/LongViewBufferImpl.java b/java/nio/LongViewBufferImpl.java
index 9c3452ae8..eefbcbdc8 100644
--- a/java/nio/LongViewBufferImpl.java
+++ b/java/nio/LongViewBufferImpl.java
@@ -131,7 +131,7 @@ final class LongViewBufferImpl extends LongBuffer
public LongBuffer slice ()
{
// Create a sliced copy of this object that shares its content.
- return new LongViewBufferImpl (bb, (position () >> 3) + offset,
+ return new LongViewBufferImpl (bb, (position () << 3) + offset,
remaining(), remaining(), 0, -1,
readOnly, endian);
}
diff --git a/java/nio/ShortViewBufferImpl.java b/java/nio/ShortViewBufferImpl.java
index cdd559522..df7133612 100644
--- a/java/nio/ShortViewBufferImpl.java
+++ b/java/nio/ShortViewBufferImpl.java
@@ -131,7 +131,7 @@ final class ShortViewBufferImpl extends ShortBuffer
public ShortBuffer slice ()
{
// Create a sliced copy of this object that shares its content.
- return new ShortViewBufferImpl (bb, (position () >> 1) + offset,
+ return new ShortViewBufferImpl (bb, (position () << 1) + offset,
remaining(), remaining(), 0, -1,
readOnly, endian);
}