mirror of
https://github.com/nasa/trick.git
synced 2025-02-21 17:36:42 +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 ( chkpnt_io_found == true ) {
|
||||||
// If a checkpoint I/O spec is found add it to the io field.
|
// If a checkpoint I/O spec is found add it to the io field.
|
||||||
io = (chkpnt_io << 2 ) + ( io & 3 ) ;
|
io = (chkpnt_io << 2 ) + ( io & 3 ) ;
|
||||||
} else {
|
} else if ( io_found == true ) {
|
||||||
// else duplicated the io field to the chkpnt io field.
|
// else duplicated the io field to the chkpnt io field.
|
||||||
io |= (io << 2 ) ;
|
io |= (io << 2 ) ;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user