Merge pull request #589 from iamthad/fix-io-63

Only left-shift `FieldDescription::io` when `io_found == true`
This commit is contained in:
Alex Lin 2018-04-12 08:46:08 -05:00 committed by GitHub
commit 1525d2f634
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 ) ;
}