mirror of
https://github.com/nasa/trick.git
synced 2024-12-19 05:07:54 +00:00
db07582616
The `io` field of `FieldDescription` takes a default value of 15. In `FieldDescription::parseComment`, it may be updated as specified in the comment text. There are 4 possible cases: 1) Neither IO attributes nor checkpoint IO attributes are found in the comment 2) IO attributes are found in the comment, but checkpoint IO attributes are not 3) Checkpoint IO attributes are found in the comment, but IO attributes are not 4) Both IO attributes and checkpoint IO attributes are found in the comment In case 2, the IO attributes are copied into the checkpoint IO attributes by the statement `io |= (io << 2)`. However, this also erroneously runs in case 1, causing the default value of 15 to change to 63. By testing `io_found == true`, this logic occurs only in case 2. Fixes #568 |
||
---|---|---|
.. | ||
codegen/Interface_Code_Gen | ||
data_products | ||
er7_utils | ||
java | ||
sim_services | ||
trick_swig | ||
trick_utils | ||
.gitignore |