Mercurial > hg > octave-nkf
diff src/ov-usr-fcn.cc @ 5154:9cb38bfb04ea
[project @ 2005-02-21 21:23:28 by jwe]
author | jwe |
---|---|
date | Mon, 21 Feb 2005 21:23:28 +0000 |
parents | e35b034d3523 |
children | ee50a5f1e541 |
line wrap: on
line diff
--- a/src/ov-usr-fcn.cc +++ b/src/ov-usr-fcn.cc @@ -294,7 +294,11 @@ switch (type[0]) { case '(': - retval = do_multi_index_op (nargout, idx.front ()); + { + int tmp_nargout = (type.length () > 0 && nargout == 0) ? 1 : nargout; + + retval = do_multi_index_op (tmp_nargout, idx.front ()); + } break; case '{':