mirror of
https://github.com/nasa/trick.git
synced 2025-04-12 05:40:06 +00:00
ICG not setting default checkpointing io correctly. #308
If a checkpoint_io field is found we were or'ing this in to bits already set by default. Clear the bits first.
This commit is contained in:
parent
6dc3d85cd3
commit
9604e019bf
@ -201,10 +201,10 @@ 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 = (chkpnt_io << 2 ) + ( io & 3 ) ;
|
||||
} else {
|
||||
// else duplicated the io field to the chkpnt io field.
|
||||
io |= (io << 2 ) ;
|
||||
io = (io << 2 ) + io ;
|
||||
}
|
||||
|
||||
// The rest of the comment is the description of the variable.
|
||||
|
Loading…
x
Reference in New Issue
Block a user