diff options
author | Michael Bien <[email protected]> | 2009-12-02 14:49:41 +0100 |
---|---|---|
committer | Michael Bien <[email protected]> | 2009-12-02 14:49:41 +0100 |
commit | 72203a5d1f8896463ded10d1b21ca116621d1900 (patch) | |
tree | 93472cac4c61381ea9cdc48bbe97a59b2cd6f64b /src/com/mbien/opencl/CLKernel.java | |
parent | 7c7f5070dcbcc37afe36a4744161157cac49997c (diff) |
fixed gcc setup on mac.
updated native taglet toc url.
fixed small bug in cl char[] -> String conversion.
Diffstat (limited to 'src/com/mbien/opencl/CLKernel.java')
-rw-r--r-- | src/com/mbien/opencl/CLKernel.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/mbien/opencl/CLKernel.java b/src/com/mbien/opencl/CLKernel.java index cadc635d..544e2752 100644 --- a/src/com/mbien/opencl/CLKernel.java +++ b/src/com/mbien/opencl/CLKernel.java @@ -40,7 +40,7 @@ public class CLKernel implements CLResource { ret = cl.clGetKernelInfo(ID, CL.CL_KERNEL_FUNCTION_NAME, bb.capacity(), bb, null, 0); checkForError(ret, "error while asking for kernel function name"); - this.name = new String(bb.array(), 0, bb.capacity()).trim(); + this.name = CLUtils.clString2JavaString(bb.array(), bb.capacity()); // get number of arguments ret = cl.clGetKernelInfo(ID, CL.CL_KERNEL_NUM_ARGS, 0, null, longArray, 0); |