Mercurial > hg > octave-lojdl
changeset 7910:b2f212b51488
DLD-FUNCTIONS/expm.cc (expm): Avoid GCC warning
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Wed, 09 Jul 2008 12:26:37 -0400 |
parents | 7ba62ea0f161 |
children | 3b46230f7a4d |
files | src/ChangeLog src/DLD-FUNCTIONS/expm.cc |
diffstat | 2 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,5 +1,7 @@ 2008-07-09 John W. Eaton <jwe@octave.org> + * DLD-FUNCTIONS/expm.cc (expm): Avoid GCC warning. + * ov-fcn-inline.cc (octave_fcn_inline::load_ascii): Avoid GCC warning. 2008-07-09 Michael Goffioul <michael.goffioul@gmail.com>
--- a/src/DLD-FUNCTIONS/expm.cc +++ b/src/DLD-FUNCTIONS/expm.cc @@ -139,11 +139,9 @@ if (arg_is_empty < 0) return retval; + if (arg_is_empty > 0) - if (isfloat) - return octave_value (FloatMatrix ()); - else - return octave_value (Matrix ()); + return isfloat ? octave_value (FloatMatrix ()) : octave_value (Matrix ()); if (nr != nc) {