diff options
author | Michael Bien <[email protected]> | 2010-04-07 23:45:03 +0200 |
---|---|---|
committer | Michael Bien <[email protected]> | 2010-04-07 23:45:03 +0200 |
commit | 54e6fc34b40f6772a65282c9053035454cb3abca (patch) | |
tree | 4d79fcda716a117a3cc6d8e28559e153b46b18e2 /src/com/mbien/opencl/CLCommandQueue.java | |
parent | fc0f84073394c6c06505f0c52215a72932b527c5 (diff) |
fixed newly introduced index out of bounds bug.
Diffstat (limited to 'src/com/mbien/opencl/CLCommandQueue.java')
-rw-r--r-- | src/com/mbien/opencl/CLCommandQueue.java | 2 |
1 files changed, 1 insertions, 1 deletions
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) { |