Skip to content

Commit 17f6365

Browse files
committed
Fix warning.
Signed-off-by: Julian Oppermann <[email protected]>
1 parent 96a24ae commit 17f6365

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sycl/source/detail/jit_compiler.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -712,8 +712,8 @@ jit_compiler::fuseKernels(QueueImplPtr Queue,
712712
KernelName.find("_ZTSN4sycl3_V16detail19__pf_kernel_wrapper") == 0) &&
713713
!Args.empty()) {
714714
auto &A0 = Args[0];
715-
int Dims = KernelCG->MNDRDesc.Dims;
716-
if (A0.MPtr && A0.MSize == (Dims * sizeof(size_t)) &&
715+
auto Dims = KernelCG->MNDRDesc.Dims;
716+
if (A0.MPtr && A0.MSize == static_cast<int>(Dims * sizeof(size_t)) &&
717717
A0.MType == kernel_param_kind_t::kind_std_layout) {
718718
size_t *UGS = reinterpret_cast<size_t *>(A0.MPtr);
719719
// Range-rounding only applies to the first dimension.

0 commit comments

Comments
 (0)