ndouble is an int

This commit is contained in:
Axel Kohlmeyer
2025-06-28 03:04:44 -04:00
parent 5fe4c9149f
commit 4d26bd5fd5

View File

@ -2056,7 +2056,7 @@ void ReadData::bodies(int firstpass, AtomVec *ptr)
auto values = ValueTokenizer(utils::trim_comment(buf));
tagint tagdata = values.next_tagint() + id_offset;
ninteger = values.next_int();
ndouble = values.next_double();
ndouble = values.next_int();
if (tagdata <= 0 || tagdata > atom->map_tag_max)
throw TokenizerException("Invalid atom ID in body header", utils::trim(buf));
if (ninteger < 0)