Mercurial > hg > octave-lyh
diff src/oct-stream.cc @ 4645:bd2067547b40
[project @ 2003-11-23 08:07:52 by jwe]
author | jwe |
---|---|
date | Sun, 23 Nov 2003 08:07:53 +0000 |
parents | ef3a14fb6847 |
children | f7ce581b27fb |
line wrap: on
line diff
--- a/src/oct-stream.cc +++ b/src/oct-stream.cc @@ -43,6 +43,7 @@ #include "oct-stdstrm.h" #include "oct-stream.h" #include "oct-obj.h" +#include "ov-streamoff.h" #include "utils.h" // Possible values for conv_err: @@ -2697,12 +2698,12 @@ { int retval = -1; - int conv_err = 0; - - int xoffset = convert_to_valid_int (tc_offset, conv_err); - - if (! conv_err) + std::streamoff xoffset = tc_offset.streamoff_value (); + + if (! error_state) { + int conv_err = 0; + std::ios::seekdir origin = std::ios::beg; if (tc_origin.is_string ())