Mercurial > octave
diff libinterp/corefcn/c-file-ptr-stream.cc @ 21184:3db899f1d54c
use istream::traits_type::eof () instead of EOF
* c-file-ptr-stream.cc, oct-stream.cc, lo-utils.cc:
Use istream::traits_type::eof () instead of EOF.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Wed, 03 Feb 2016 17:15:15 -0500 |
parents | e7fda94aec6b |
children | fcac5dbbf9ed |
line wrap: on
line diff
--- a/libinterp/corefcn/c-file-ptr-stream.cc Wed Feb 03 16:50:38 2016 -0500 +++ b/libinterp/corefcn/c-file-ptr-stream.cc Wed Feb 03 17:15:15 2016 -0500 @@ -153,7 +153,7 @@ int c_file_ptr_buf::flush (void) { - return f ? gnulib::fflush (f) : EOF; + return f ? gnulib::fflush (f) : traits_type::eof (); } int @@ -300,7 +300,7 @@ // something other than 0 for the second argument to gzflush and // checking the return value, etc.? - return f ? gzflush (f, 0) : EOF; + return f ? gzflush (f, 0) : traits_type::eof (); } int