silence compiler warnings

This commit is contained in:
Axel Kohlmeyer
2020-07-17 14:02:18 -04:00
parent 65f9c1abf5
commit 95c215d5d3
2 changed files with 4 additions and 4 deletions

View File

@ -410,7 +410,7 @@ int PythonImpl::create_entry(char *name)
if (!format && ninput+noutput)
error->all(FLERR,"Invalid python command");
else if (format && strlen(format) != ninput+noutput)
else if (format && ((int) strlen(format) != ninput+noutput))
error->all(FLERR,"Invalid python command");
// process inputs as values or variables

View File

@ -511,7 +511,7 @@ void ComputeVoronoi::processCell(voronoicell_neighbor &c, int i)
c.face_areas(narea);
have_narea = true;
voro[i][1] = 0.0;
for (j=0; j<narea.size(); ++j)
for (j=0; j < (int)narea.size(); ++j)
if (narea[j] > fthresh) voro[i][1] += 1.0;
} else {
// unthresholded face count
@ -526,7 +526,7 @@ void ComputeVoronoi::processCell(voronoicell_neighbor &c, int i)
voro[i][2] = 0.0;
// each entry in neigh should correspond to an entry in narea
if (neighs != narea.size())
if (neighs != (int)narea.size())
error->one(FLERR,"Voro++ error: narea and neigh have a different size");
// loop over all faces (neighbors) and check if they are in the surface group
@ -587,7 +587,7 @@ void ComputeVoronoi::processCell(voronoicell_neighbor &c, int i)
if (!have_narea) c.face_areas(narea);
if (neighs != narea.size())
if (neighs != (int)narea.size())
error->one(FLERR,"Voro++ error: narea and neigh have a different size");
tagint itag, jtag;
tagint *tag = atom->tag;