Mercurial > octave
diff libinterp/corefcn/hex2num.cc @ 20802:8bb38ba1bad6
eliminate return statements after calls to print_usage
* __contourc__.cc, __dispatch__.cc, __dsearchn__.cc, __ichol__.cc,
__lin_interpn__.cc, __qp__.cc, balance.cc, betainc.cc, bsxfun.cc,
colloc.cc, daspk.cc, dasrt.cc, dassl.cc, defaults.cc, det.cc,
dlmread.cc, dot.cc, eig.cc, ellipj.cc, fft.cc, fft2.cc, fftn.cc,
filter.cc, find.cc, gcd.cc, givens.cc, hex2num.cc, inv.cc, lookup.cc,
lu.cc, max.cc, mgorth.cc, ordschur.cc, pinv.cc, profiler.cc, quad.cc,
qz.cc, rcond.cc, schur.cc, str2double.cc:
Eliminate return statements after calls to print_usage.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Fri, 04 Dec 2015 12:03:44 -0500 |
parents | 4b00afb5e9c3 |
children | d9ca869ca124 |
line wrap: on
line diff
--- a/libinterp/corefcn/hex2num.cc Thu Dec 03 19:22:54 2015 -0500 +++ b/libinterp/corefcn/hex2num.cc Fri Dec 04 12:03:44 2015 -0500 @@ -70,7 +70,8 @@ if (nargin < 1 || nargin > 2) print_usage (); - else if (nargin == 2 && ! args(1).is_string ()) + + if (nargin == 2 && ! args(1).is_string ()) error ("hex2num: CLASS must be a string"); else { @@ -223,7 +224,8 @@ if (nargin != 1) print_usage (); - else if (args(0).is_single_type ()) + + if (args(0).is_single_type ()) { const FloatColumnVector v (args(0).float_vector_value ());