File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -224,11 +224,11 @@ pi_result OCL(piSamplerCreate)(pi_context context,
224
224
for (std::size_t i = 0 ; sampler_properties && sampler_properties[i] != 0 ;
225
225
++i) {
226
226
if (sampler_properties[i] == PI_SAMPLER_INFO_NORMALIZED_COORDS) {
227
- normalizedCoords = ( pi_bool) sampler_properties[++i];
227
+ normalizedCoords = static_cast < pi_bool>( sampler_properties[++i]) ;
228
228
} else if (sampler_properties[i] == PI_SAMPLER_INFO_ADDRESSING_MODE) {
229
- addressingMode = ( pi_sampler_addressing_mode) sampler_properties[++i];
229
+ addressingMode = static_cast < pi_sampler_addressing_mode>( sampler_properties[++i]) ;
230
230
} else if (sampler_properties[i] == PI_SAMPLER_INFO_FILTER_MODE) {
231
- filterMode = ( pi_sampler_filter_mode) sampler_properties[++i];
231
+ filterMode = static_cast < pi_sampler_filter_mode>( sampler_properties[++i]) ;
232
232
} else {
233
233
PI_ASSERT (false , " Cannot recognize sampler property" );
234
234
}
You can’t perform that action at this time.
0 commit comments