File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1745,12 +1745,12 @@ Severity STEPfile::AppendFile( istream * in, bool useTechCor ) {
17451745 char ch;
17461746 in2->get ( ch );
17471747 if ( ch != ' ;' ) {
1748- std::cerr << __FILE__ << " :" << __LINE__ << " - Expected ';', found '" << c << " '." << std::endl;
1748+ std::cerr << __FILE__ << " :" << __LINE__ << " - Expected ';' at Part 21 EOF , found '" << c << " '." << std::endl;
17491749 }
17501750 }
17511751
1752- if ( ( keywd != END_FILE_DELIM ) || !( in2 -> good () ) ) {
1753- _error.AppendToUserMsg ( END_FILE_DELIM. c_str () );
1752+ if ( ( ! keywd. compare ( 0 , keywd. size (), END_FILE_DELIM ) ) || !( in2 -> good () ) ) {
1753+ _error.AppendToUserMsg ( END_FILE_DELIM );
17541754 _error.AppendToUserMsg ( " missing at end of file.\n " );
17551755 CloseInputFile ( in2 );
17561756 return _error.GreaterSeverity ( SEVERITY_WARNING );
You can’t perform that action at this time.
0 commit comments