Skip to content

Commit 3ea326d

Browse files
authored
[SYCL][E2E][Bindless] Fix cast to char failing with -werror (#15132)
Fix cast to char emitting a warning causing an error when -werror is used.
1 parent ad6ffcd commit 3ea326d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sycl/test-e2e/bindless_images/vulkan_interop/sampled_images.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ bool run_test(sycl::range<NDims> dims, sycl::range<NDims> localSize,
281281
(void **)&inputStagingData));
282282
auto getInputValue = [&](int i) -> DType {
283283
if (CType == sycl::image_channel_type::unorm_int8)
284-
return 255;
284+
return static_cast<DType>(255);
285285
if constexpr (std::is_integral_v<DType>)
286286
i = i % std::numeric_limits<DType>::max();
287287
return i;

0 commit comments

Comments
 (0)