diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2015-01-17 18:50:18 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2015-01-20 09:06:49 +0100 |
commit | 4d78f348f904a08db52e9f063a230b31bcc2e07f (patch) | |
tree | 19485af033ac5f9eb537498ac866c7de587153ac /opencl | |
parent | 8b2cf9099a6509594df874f951f527ae5c35c421 (diff) |
Some more loplugin:cstylecast: opencl
Change-Id: I93c590a71ea768511a89d6fe17dc7aa01fe73b02
Diffstat (limited to 'opencl')
-rw-r--r-- | opencl/inc/opencl_device_selection.h | 4 |
1 files 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<const unsigned char*>(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<const unsigned char*>(deviceScoreStart), deviceScoreEnd - deviceScoreStart); if (status != DS_SUCCESS) { goto cleanup; |