silence compiler warnings

This commit is contained in:
Axel Kohlmeyer
2020-08-29 18:32:21 -04:00
parent 741a1d1fc9
commit 27b4e93bf5
2 changed files with 2 additions and 2 deletions

View File

@ -773,7 +773,7 @@ void Molecule::fragments(char *line)
ValueTokenizer values(line); ValueTokenizer values(line);
if (values.count() > natoms+1) if ((int)values.count() > natoms+1)
error->one(FLERR,"Invalid atom ID in Fragments section of molecule file"); error->one(FLERR,"Invalid atom ID in Fragments section of molecule file");
fragmentnames[i] = values.next_string(); fragmentnames[i] = values.next_string();

View File

@ -320,7 +320,7 @@ void ReaderNative::read_atoms(int n, int nfield, double **fields)
// tokenize the line // tokenize the line
std::vector<std::string> words = Tokenizer(line).as_vector(); std::vector<std::string> words = Tokenizer(line).as_vector();
if (words.size() < nwords) error->one(FLERR,"Insufficient columns in dump file"); if ((int)words.size() < nwords) error->one(FLERR,"Insufficient columns in dump file");
// convert selected fields to floats // convert selected fields to floats