Use proper int/uint converts in OpenCL code