Mercurial > hg > octave-terminal
changeset 3066:2d485faf2fa3
[project @ 1997-07-02 21:48:29 by jwe]
author | jwe |
---|---|
date | Wed, 02 Jul 1997 21:48:29 +0000 |
parents | 2280158c4449 |
children | aa76250a5b87 |
files | src/error.cc |
diffstat | 1 files changed, 9 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/error.cc +++ b/src/error.cc @@ -213,7 +213,15 @@ if (nargin > 0) { - octave_value arg = ((nargin > 1) ? Fsprintf (args, 1) : args) (0); + octave_value arg; + + if (nargin > 1) + { + octave_value_list tmp = Fsprintf (args, 1); + arg = tmp(0); + } + else + arg = args(0); if (arg.is_defined ()) {