aboutsummaryrefslogtreecommitdiffstats
path: root/src/com/mbien/opencl
diff options
context:
space:
mode:
authorMichael Bien <[email protected]>2010-04-07 23:45:03 +0200
committerMichael Bien <[email protected]>2010-04-07 23:45:03 +0200
commit54e6fc34b40f6772a65282c9053035454cb3abca (patch)
tree4d79fcda716a117a3cc6d8e28559e153b46b18e2 /src/com/mbien/opencl
parentfc0f84073394c6c06505f0c52215a72932b527c5 (diff)
fixed newly introduced index out of bounds bug.
Diffstat (limited to 'src/com/mbien/opencl')
-rw-r--r--src/com/mbien/opencl/CLCommandQueue.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/mbien/opencl/CLCommandQueue.java b/src/com/mbien/opencl/CLCommandQueue.java
index cbdba9b..ba2996d 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) {