Mercurial > hg > octave-nkf
changeset 19480:d60b44acfff7 stable
Change a bitwise OR to a logical OR in Range.h.
* Range.h (Range::Range): Replace | with || in logical test that snuck in
during cset c457a84bc7d3 when improving range/scalar arithmetic.
author | Daniel J Sebald <daniel.sebald@ieee.org> |
---|---|
date | Tue, 30 Sep 2014 00:26:10 -0500 |
parents | f96495e88a70 |
children | cd8cf41f130d 8d7e760bfa68 |
files | liboctave/array/Range.h |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/liboctave/array/Range.h +++ b/liboctave/array/Range.h @@ -54,7 +54,7 @@ : rng_base (b), rng_limit (b + (n-1) * i), rng_inc (i), rng_nelem (n), cache () { - if (! xfinite (b) || ! xfinite (i) | ! xfinite (rng_limit)) + if (! xfinite (b) || ! xfinite (i) || ! xfinite (rng_limit)) rng_nelem = -2; }