Mercurial > hg > octave-lyh
comparison 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 |
comparison
equal
deleted
inserted
replaced
14021:e3bed294b117 | 14022:de90542b7afc |
---|---|
111 octave_sparse_params::print_info (octave_stdout, ""); | 111 octave_sparse_params::print_info (octave_stdout, ""); |
112 else if (nargout == 1) | 112 else if (nargout == 1) |
113 retval(0) = octave_sparse_params::get_vals (); | 113 retval(0) = octave_sparse_params::get_vals (); |
114 else if (nargout == 2) | 114 else if (nargout == 2) |
115 { | 115 { |
116 retval (1) = octave_sparse_params::get_vals (); | |
116 retval (0) = octave_sparse_params::get_keys (); | 117 retval (0) = octave_sparse_params::get_keys (); |
117 retval (1) = octave_sparse_params::get_vals (); | |
118 } | 118 } |
119 else | 119 else |
120 error ("spparms: too many output arguments"); | 120 error ("spparms: too many output arguments"); |
121 } | 121 } |
122 else if (nargin == 1) | 122 else if (nargin == 1) |