diff --git a/trick_source/codegen/Interface_Code_Gen/FieldDescription.cpp b/trick_source/codegen/Interface_Code_Gen/FieldDescription.cpp index 79a921a1..6ff65d7b 100644 --- a/trick_source/codegen/Interface_Code_Gen/FieldDescription.cpp +++ b/trick_source/codegen/Interface_Code_Gen/FieldDescription.cpp @@ -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 ) ; }