Fixed put on external ByteBuffer.

This commit is contained in:
Ioannis Tsakpinis 2012-12-12 19:17:50 +02:00
parent 31a4517205
commit ce4153e883
1 changed files with 2 additions and 2 deletions

View File

@ -550,9 +550,9 @@ public class PointerBuffer implements Comparable {
*/
public static void put(final ByteBuffer target, int index, long l) {
if ( is64Bit )
target.putLong(index * 8, l);
target.putLong(index, l);
else
target.putInt(index * 4, (int)l);
target.putInt(index, (int)l);
}
// -- Bulk get operations --