diff src/ov-builtin.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-builtin.cc	Mon Feb 21 21:01:42 2005 +0000
+++ b/src/ov-builtin.cc	Mon Feb 21 21:23:28 2005 +0000
@@ -61,7 +61,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 '{':