diff --git a/src/Omega_h_int_scan.cpp b/src/Omega_h_int_scan.cpp index b97c2fa47..fa88d75b3 100644 --- a/src/Omega_h_int_scan.cpp +++ b/src/Omega_h_int_scan.cpp @@ -27,8 +27,7 @@ LOs offset_scan(Read a, std::string const& name) { out.set(0, 0); #if defined(OMEGA_H_USE_KOKKOS) auto outSub = Kokkos::subview(out.view(),std::make_pair(1,out.size())); - LO outSub_size = outSub.size(); - assert(outSub_size==a.size()); + assert(static_cast(outSub.size())==a.size()); auto kkOp = i32Plus(); Kokkos::Experimental::inclusive_scan("omegah_kk_offset_scan", ExecSpace(), a.view(), outSub, kkOp, LO()); Kokkos::fence();