silence some more signedness warnings

This commit is contained in:
Axel Kohlmeyer
2020-08-18 15:28:02 -04:00
parent 63575829da
commit 07c47fbd4a
2 changed files with 2 additions and 2 deletions

View File

@ -37,7 +37,7 @@ void NeighListKokkos<DeviceType>::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);

View File

@ -1002,7 +1002,7 @@ void PairEAMFSKokkos<DeviceType>::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];