diff --git a/src/KOKKOS/neigh_list_kokkos.cpp b/src/KOKKOS/neigh_list_kokkos.cpp index ab0cec15aa..14591f8246 100644 --- a/src/KOKKOS/neigh_list_kokkos.cpp +++ b/src/KOKKOS/neigh_list_kokkos.cpp @@ -37,7 +37,7 @@ void NeighListKokkos::grow(int nmax) // skip if this list is already long enough to store nmax atoms // and maxneighs neighbors - if (nmax <= maxatoms && d_neighbors.extent(1) >= maxneighs) return; + if (nmax <= maxatoms && (int)d_neighbors.extent(1) >= maxneighs) return; maxatoms = nmax; k_ilist = DAT::tdual_int_1d("neighlist:ilist",maxatoms); diff --git a/src/KOKKOS/pair_eam_fs_kokkos.cpp b/src/KOKKOS/pair_eam_fs_kokkos.cpp index 6082acdfa4..0a8e6c7be3 100644 --- a/src/KOKKOS/pair_eam_fs_kokkos.cpp +++ b/src/KOKKOS/pair_eam_fs_kokkos.cpp @@ -1002,7 +1002,7 @@ void PairEAMFSKokkos::read_file(char *filename) ValueTokenizer values = reader.next_values(1); file->nelements = values.next_int(); - if (values.count() != file->nelements + 1) + if ((int)values.count() != file->nelements + 1) error->one(FLERR,"Incorrect element names in EAM potential file"); file->elements = new char*[file->nelements];