comparison src/oct-stream.cc @ 14022:de90542b7afc

Return retval(1) before retval(0) to avoid re-sizing call on retval. * balance.cc, getgrent.cc, getpwent.cc, spparms.cc, sqrtm.cc, urlwrite.cc, data.cc, dirfns.cc, graphics.cc, oct-stream.cc, syscalls.cc: Return retval(1) before retval(0) to avoid re-sizing call on retval.
author Rik <octave@nomad.inbox5.com>
date Fri, 09 Dec 2011 11:17:13 -0800
parents 7dd7cccf0757
children 72c96de7a403
comparison
equal deleted inserted replaced
14021:e3bed294b117 14022:de90542b7afc
4179 4179
4180 if (os.is_valid ()) 4180 if (os.is_valid ())
4181 { 4181 {
4182 retval.resize (3); 4182 retval.resize (3);
4183 4183
4184 retval(2) = oct_mach_info::float_format_as_string (os.float_format ());
4185 retval(1) = octave_stream::mode_as_string (os.mode ());
4184 retval(0) = os.name (); 4186 retval(0) = os.name ();
4185 retval(1) = octave_stream::mode_as_string (os.mode ());
4186 retval(2) = oct_mach_info::float_format_as_string (os.float_format ());
4187 } 4187 }
4188 else 4188 else
4189 ::error ("invalid file id = %d", fid); 4189 ::error ("invalid file id = %d", fid);
4190 4190
4191 return retval; 4191 return retval;