Added casts to (cl_uint) to fix compiler warnings.