diff --git a/trick_source/codegen/Interface_Code_Gen/FieldDescription.cpp b/trick_source/codegen/Interface_Code_Gen/FieldDescription.cpp index a42b2ce5..c4797939 100644 --- a/trick_source/codegen/Interface_Code_Gen/FieldDescription.cpp +++ b/trick_source/codegen/Interface_Code_Gen/FieldDescription.cpp @@ -267,7 +267,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 = (chkpnt_io << 2 ) + ( io & 3 ) ; } else { // else duplicated the io field to the chkpnt io field. io |= (io << 2 ) ;