mirror of
https://github.com/nasa/trick.git
synced 2025-02-20 17:22:52 +00:00
Merge pull request #589 from iamthad/fix-io-63
Only left-shift `FieldDescription::io` when `io_found == true`
This commit is contained in:
commit
1525d2f634
@ -270,7 +270,7 @@ void FieldDescription::parseComment(std::string comment) {
|
||||
if ( chkpnt_io_found == true ) {
|
||||
// If a checkpoint I/O spec is found add it to the io field.
|
||||
io = (chkpnt_io << 2 ) + ( io & 3 ) ;
|
||||
} else {
|
||||
} else if ( io_found == true ) {
|
||||
// else duplicated the io field to the chkpnt io field.
|
||||
io |= (io << 2 ) ;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user