From 4d78f348f904a08db52e9f063a230b31bcc2e07f Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Sat, 17 Jan 2015 18:50:18 +0100 Subject: [PATCH] Some more loplugin:cstylecast: opencl Change-Id: I93c590a71ea768511a89d6fe17dc7aa01fe73b02 --- opencl/inc/opencl_device_selection.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/opencl/inc/opencl_device_selection.h b/opencl/inc/opencl_device_selection.h index f40aa8b192dd..7e0754b4d1bc 100644 --- a/opencl/inc/opencl_device_selection.h +++ b/opencl/inc/opencl_device_selection.h @@ -570,7 +570,7 @@ inline ds_status readProfileFromFile(ds_profile* profile, ds_score_deserializer } deviceScoreStart += strlen(DS_TAG_SCORE); deviceScoreEnd = findString(deviceScoreStart, contentEnd, DS_TAG_SCORE_END); - status = deserializer(profile->devices + i, (const unsigned char*)deviceScoreStart, deviceScoreEnd - deviceScoreStart); + status = deserializer(profile->devices + i, reinterpret_cast(deviceScoreStart), deviceScoreEnd - deviceScoreStart); if (status != DS_SUCCESS) { goto cleanup; @@ -594,7 +594,7 @@ inline ds_status readProfileFromFile(ds_profile* profile, ds_score_deserializer } deviceScoreStart += strlen(DS_TAG_SCORE); deviceScoreEnd = findString(deviceScoreStart, contentEnd, DS_TAG_SCORE_END); - status = deserializer(profile->devices + i, (const unsigned char*)deviceScoreStart, deviceScoreEnd - deviceScoreStart); + status = deserializer(profile->devices + i, reinterpret_cast(deviceScoreStart), deviceScoreEnd - deviceScoreStart); if (status != DS_SUCCESS) { goto cleanup;