Mercurial > octave-nkf
diff src/DLD-FUNCTIONS/spparms.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 | 5f86bde27700 |
children | 72c96de7a403 |
line wrap: on
line diff
--- a/src/DLD-FUNCTIONS/spparms.cc Fri Dec 09 11:12:50 2011 -0500 +++ b/src/DLD-FUNCTIONS/spparms.cc Fri Dec 09 11:17:13 2011 -0800 @@ -113,8 +113,8 @@ retval(0) = octave_sparse_params::get_vals (); else if (nargout == 2) { + retval (1) = octave_sparse_params::get_vals (); retval (0) = octave_sparse_params::get_keys (); - retval (1) = octave_sparse_params::get_vals (); } else error ("spparms: too many output arguments");