From fbf8fa7e4728a717039b8779d69321cb88e5e527 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Fri, 2 Jun 2017 09:37:11 +0200 Subject: Improved loplugin:redundantcast static_cast handling: opencl Change-Id: I45fc65e3b27e0c57d041c4f724c23d90ec1448d3 --- opencl/source/openclwrapper.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'opencl') diff --git a/opencl/source/openclwrapper.cxx b/opencl/source/openclwrapper.cxx index 2ca0a603a5da..d59630c53981 100644 --- a/opencl/source/openclwrapper.cxx +++ b/opencl/source/openclwrapper.cxx @@ -768,13 +768,13 @@ void findDeviceInfoFromDeviceId(cl_device_id aDeviceId, size_t& rDeviceId, size_ const std::vector& rPlatforms = fillOpenCLInfo(); for(size_t i = 0; i < rPlatforms.size(); ++i) { - cl_platform_id platId = static_cast(rPlatforms[i].platform); + cl_platform_id platId = rPlatforms[i].platform; if(platId != platformId) continue; for(size_t j = 0; j < rPlatforms[i].maDevices.size(); ++j) { - cl_device_id id = static_cast(rPlatforms[i].maDevices[j].device); + cl_device_id id = rPlatforms[i].maDevices[j].device; if(id == aDeviceId) { rDeviceId = j; -- cgit