Mercurial > hg > octave-lyh
diff src/error.cc @ 1728:42b4f904f1af
[project @ 1996-01-09 11:36:01 by jwe]
author | jwe |
---|---|
date | Tue, 09 Jan 1996 11:41:43 +0000 |
parents | 4a4440aa1262 |
children | a02f140ed897 |
line wrap: on
line diff
--- a/src/error.cc +++ b/src/error.cc @@ -28,6 +28,8 @@ #include <cstdarg> #include <cstring> +#include <string> + #include <strstream.h> #include "defun.h" @@ -202,6 +204,8 @@ { Octave_object retval; + string tstr; + int nargin = args.length (); tree_constant arg = ((nargin > 1) ? Fsprintf (args, 1) : args) (0); @@ -210,7 +214,8 @@ { if (arg.is_string ()) { - msg = arg.string_value (); + tstr = arg.string_value (); + msg = tstr.c_str (); if (! msg) return retval;