Mercurial > hg > octave-jordi
diff libinterp/corefcn/oct-fstrm.cc @ 20915:8ddb11c0b1f8
restore return statements after calls to octave_base_stream::error
Unlike the global error function, the octave_base_stream::error
function simply sets some internal class error info and does return.
* oct-fstrm.cc, oct-stream.cc, oct-strstrm.cc: Rstore return
statements after calls to octave_base_stream::error.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Wed, 16 Dec 2015 17:06:52 -0500 |
parents | 384ff5aa9437 |
children | 69dcb58b9ada |
line wrap: on
line diff
--- a/libinterp/corefcn/oct-fstrm.cc +++ b/libinterp/corefcn/oct-fstrm.cc @@ -65,6 +65,7 @@ octave_fstream::seek (off_t, int) { error ("fseek: invalid_operation"); + return -1; } // Return current stream position. @@ -73,6 +74,7 @@ octave_fstream::tell (void) { error ("ftell: invalid_operation"); + return -1; } // Return nonzero if EOF has been reached on this stream.