OSDN Git Service

Fix an issue where we're adding 4x the intended offset.
authorJesse Wilson <jessewilson@google.com>
Tue, 28 Jul 2009 23:49:40 +0000 (16:49 -0700)
committerJesse Wilson <jessewilson@google.com>
Wed, 29 Jul 2009 22:00:09 +0000 (15:00 -0700)
commitbd79e4498465381117f2cbc6399a256061f1d144
tree73ff27c21352acf40774564b9ff35fd5f8a1cd47
parent2932648271e72bad181b293e1fa5945265c7dbed
Fix an issue where we're adding 4x the intended offset.

We were doing pointer arithmetic of mixed types (jint* and jint),
and the type conversion ended up causing the offset to be converted
an extra time.
libcore/luni/src/main/native/org_apache_harmony_luni_platform_OSMemory.cpp
libcore/nio/src/test/java/org/apache/harmony/nio/tests/java/nio/DirectIntBufferTest.java
libcore/nio/src/test/java/org/apache/harmony/nio/tests/java/nio/DirectShortBufferTest.java