diff options
Diffstat (limited to 'libjava/java/nio/natDirectByteBufferImpl.cc')
-rw-r--r-- | libjava/java/nio/natDirectByteBufferImpl.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libjava/java/nio/natDirectByteBufferImpl.cc b/libjava/java/nio/natDirectByteBufferImpl.cc index 94225c3..88f53fc 100644 --- a/libjava/java/nio/natDirectByteBufferImpl.cc +++ b/libjava/java/nio/natDirectByteBufferImpl.cc @@ -65,9 +65,9 @@ java::nio::DirectByteBufferImpl::adjustAddress (RawData* address, jint offset) void java::nio::DirectByteBufferImpl::shiftDown -(jint dst_offset, jint src_offset, jint count) +(RawData* address, jint dst_offset, jint src_offset, jint count) { - jbyte* dst = reinterpret_cast<jbyte*> (address) + array_offset + dst_offset; - jbyte* src = reinterpret_cast<jbyte*> (address) + array_offset + src_offset; + jbyte* dst = reinterpret_cast<jbyte*> (address) + dst_offset; + jbyte* src = reinterpret_cast<jbyte*> (address) + src_offset; ::memmove(dst, src, count); } |