Mercurial > octave
comparison libinterp/corefcn/oct-stream.cc @ 31171:c90718a28a3c
maint: Merge stable to default.
author | Markus Mützel <markus.muetzel@gmx.de> |
---|---|
date | Tue, 02 Aug 2022 18:47:12 +0200 |
parents | 670a0d878af1 bcd75c07c9e8 |
children | 6bd338605fd3 e88a07dec498 |
comparison
equal
deleted
inserted
replaced
31169:e37e46ef0505 | 31171:c90718a28a3c |
---|---|
5040 final_nc = 1; | 5040 final_nc = 1; |
5041 } | 5041 } |
5042 | 5042 |
5043 // If it looks like we have a matching failure, then | 5043 // If it looks like we have a matching failure, then |
5044 // reset the failbit in the stream state. | 5044 // reset the failbit in the stream state. |
5045 if (is.rdstate () & std::ios::failbit) | 5045 if (! is.eof () && is.rdstate () & std::ios::failbit) |
5046 { | 5046 { |
5047 error (who, "format failed to match"); | 5047 error (who, "format failed to match"); |
5048 is.clear (is.rdstate () & (~std::ios::failbit)); | 5048 is.clear (is.rdstate () & (~std::ios::failbit)); |
5049 } | 5049 } |
5050 | 5050 |