mirror of
https://github.com/nasa/trick.git
synced 2025-02-06 19:09:20 +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
256c83a876
commit
9801e3d210
@ -267,7 +267,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 = (chkpnt_io << 2 ) + ( io & 3 ) ;
|
||||||
} else {
|
} else {
|
||||||
// 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