diff options
author | sg215889 <[email protected]> | 2009-07-15 05:30:40 -0700 |
---|---|---|
committer | sg215889 <[email protected]> | 2009-07-15 05:30:40 -0700 |
commit | 86744e74db26492056bbe74d82997852e14fea8a (patch) | |
tree | 776ae70005011f648a32cadf52071d54f16ee33e /src/java/com/sun/gluegen/runtime/PointerBuffer.java.javase | |
parent | f5389b978ffb8fb229ad1b6db4cb7c957818e5f4 (diff) |
Build CDC named JARs for CVM in default build, no more specialized build necessary. Fix PointerBuffer allocateDirect()
Diffstat (limited to 'src/java/com/sun/gluegen/runtime/PointerBuffer.java.javase')
-rwxr-xr-x | src/java/com/sun/gluegen/runtime/PointerBuffer.java.javase | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/java/com/sun/gluegen/runtime/PointerBuffer.java.javase b/src/java/com/sun/gluegen/runtime/PointerBuffer.java.javase index 88531e8..4957b17 100755 --- a/src/java/com/sun/gluegen/runtime/PointerBuffer.java.javase +++ b/src/java/com/sun/gluegen/runtime/PointerBuffer.java.javase @@ -88,7 +88,7 @@ public class PointerBuffer { } public static PointerBuffer allocateDirect(int size) { - return new PointerBuffer(BufferFactory.newDirectByteBuffer(size)); + return new PointerBuffer(BufferFactory.newDirectByteBuffer(BufferFactory.SIZEOF_LONG * size)); } public static PointerBuffer wrap(ByteBuffer src) { |