Fixed put on external ByteBuffer.
This commit is contained in:
parent
31a4517205
commit
ce4153e883
|
@ -550,9 +550,9 @@ public class PointerBuffer implements Comparable {
|
||||||
*/
|
*/
|
||||||
public static void put(final ByteBuffer target, int index, long l) {
|
public static void put(final ByteBuffer target, int index, long l) {
|
||||||
if ( is64Bit )
|
if ( is64Bit )
|
||||||
target.putLong(index * 8, l);
|
target.putLong(index, l);
|
||||||
else
|
else
|
||||||
target.putInt(index * 4, (int)l);
|
target.putInt(index, (int)l);
|
||||||
}
|
}
|
||||||
|
|
||||||
// -- Bulk get operations --
|
// -- Bulk get operations --
|
||||||
|
|
Loading…
Reference in New Issue