Mercurial > hg > octave-jordi
changeset 15978:dc5d42399e89
maint: whitespace cleanup
author | Jordi Gutiérrez Hermoso <jordigh@octave.org> |
---|---|
date | Thu, 24 Jan 2013 17:12:43 -0500 |
parents | 6535f92350ec |
children | 3cd3b548f90b |
files | libinterp/octave-value/ov-fcn-inline.cc |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/libinterp/octave-value/ov-fcn-inline.cc +++ b/libinterp/octave-value/ov-fcn-inline.cc @@ -760,12 +760,12 @@ } else if (nargin == 2 && args(1).is_numeric_type ()) { - if (! args(1).is_scalar_type ()) + if (! args(1).is_scalar_type ()) { error ("inline: N must be an integer"); return retval; } - + int n = args(1).int_value (); if (! error_state) @@ -834,7 +834,7 @@ %!assert (feval (inline ("sqrt (x^2 + y^2)", "x", "y"), 3, 4), 5) %!assert (feval (inline ("exp (P1*x) + P2", 3), 3, 4, 5), exp(3*4) + 5) -## Test input validation +## Test input validation %!error inline () %!error <STR argument must be a string> inline (1) %!error <N must be an integer> inline ("2", ones (2,2))