#673 add break and remove trailing whitespace from @pappyvw review

This commit is contained in:
Scott Fennell 2018-10-20 14:33:14 -05:00
parent bc35e64406
commit 587ce0aab5
2 changed files with 3 additions and 2 deletions

View File

@ -111,7 +111,7 @@ MatLab::MatLab(char * file_name, char * param_name, char * time_name) {
swap_ = 0;
} else if (magic == 0x494d) {
swap_ = 1;
}
}
param_found = time_found = false;
while ( (!param_found || !time_found) && !feof(fp_)) {

View File

@ -366,7 +366,8 @@ int MatLab4LocateParam( char *file_name , char *param_name , char *time_name ) {
break ;
default :
std::cerr << "Matlab4 " << __FUNCTION__ << "ERROR: invalid matrix size" << std::endl;
size = -1;
size = -1 ;
break ;
}
fread( &row , 4 , 1 , fp ) ;