diff opencl/program.d @ 3:c78ffc9a7434 default tip

* corrected import declarations * fixed bug in Program
author Trass3r
date Thu, 15 Apr 2010 03:20:03 +0200
parents 3cea44337083
children
line wrap: on
line diff
--- a/opencl/program.d	Wed Apr 14 14:27:06 2010 +0200
+++ b/opencl/program.d	Thu Apr 15 03:20:03 2010 +0200
@@ -3,7 +3,7 @@
  */
 module opencl.program;
 
-import opencl.c.opencl;
+import opencl.c.cl;
 import opencl.wrapper;
 import opencl.device;
 import opencl.context;
@@ -136,7 +136,7 @@
 	{
 		cl_device_id[] ids = getArrayInfo!(cl_device_id)(CL_PROGRAM_DEVICES);
 		CLDevice[] res = new CLDevice[ids.length];
-		for(uint i=0; i<ids.length, i++)
+		for(uint i=0; i<ids.length; i++)
 			res[i] = new CLDevice(ids[i]);
 		return res;
 	}