silence compiler warnings

This commit is contained in:
Axel Kohlmeyer
2020-06-11 19:05:06 -04:00
parent a8c1ce98cf
commit 9ca0d01a5b
13 changed files with 11 additions and 16 deletions

View File

@ -1667,7 +1667,7 @@ int lammps_style_name(void* ptr, char * category, int index, char * buffer, int
Info info(lmp);
auto styles = info.get_available_styles(category);
if (index < styles.size()) {
if (index < (int)styles.size()) {
strncpy(buffer, styles[index].c_str(), max_size);
return true;
}