From 54e6fc34b40f6772a65282c9053035454cb3abca Mon Sep 17 00:00:00 2001 From: Michael Bien Date: Wed, 7 Apr 2010 23:45:03 +0200 Subject: fixed newly introduced index out of bounds bug. --- src/com/mbien/opencl/CLCommandQueue.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/com/mbien/opencl') diff --git a/src/com/mbien/opencl/CLCommandQueue.java b/src/com/mbien/opencl/CLCommandQueue.java index cbdba9b8..ba2996d4 100644 --- a/src/com/mbien/opencl/CLCommandQueue.java +++ b/src/com/mbien/opencl/CLCommandQueue.java @@ -1360,7 +1360,7 @@ public class CLCommandQueue extends CLObject implements CLResource { } private static PointerBuffer copy2NIO(PointerBuffer buffer, long a) { - return (PointerBuffer) buffer.put(2, a).position(2); + return (PointerBuffer) buffer.put(0, a); } // private static PointerBuffer copy2NIO(PointerBuffer buffer, long a, long b) { -- cgit v1.2.3