diff --git a/sycl/include/sycl/detail/image_ocl_types.hpp b/sycl/include/sycl/detail/image_ocl_types.hpp index def6cfeaf2d1d..93d557e509f47 100644 --- a/sycl/include/sycl/detail/image_ocl_types.hpp +++ b/sycl/include/sycl/detail/image_ocl_types.hpp @@ -81,7 +81,7 @@ static RetType __invoke__ImageRead(ImageT Img, CoordT Coords) { template static RetType __invoke__ImageArrayFetch(ImageT Img, CoordT Coords, - int ArrayLayer) { + int ArrayLayer) { // Convert from sycl types to builtin types to get correct function mangling. using TempRetT = sycl::detail::ConvertToOpenCLType_t; diff --git a/sycl/include/sycl/ext/oneapi/bindless_images.hpp b/sycl/include/sycl/ext/oneapi/bindless_images.hpp index aff805d01a219..7f283cb14503c 100644 --- a/sycl/include/sycl/ext/oneapi/bindless_images.hpp +++ b/sycl/include/sycl/ext/oneapi/bindless_images.hpp @@ -1130,7 +1130,7 @@ DataT fetch_image_array(const unsampled_image_handle &imageHandle #ifdef __SYCL_DEVICE_ONLY__ if constexpr (detail::is_recognized_standard_type()) { return __invoke__ImageArrayFetch(imageHandle.raw_handle, coords, - arrayLayer); + arrayLayer); } else { static_assert(sizeof(HintT) == sizeof(DataT), "When trying to fetch a user-defined type, HintT must be of "