|
From: | Rik |
Subject: | [Octave-bug-tracker] [bug #53477] base2dec.m : missing a warning, error. |
Date: | Thu, 12 Apr 2018 16:48:34 -0400 (EDT) |
User-agent: | Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:55.0) Gecko/20100101 Firefox/55.0 |
Update of bug #53477 (project octave): Status: None => Fixed Open/Closed: Open => Closed _______________________________________________________ Follow-up Comment #2: I checked in a changeset to address using NaN as a base here (http://hg.savannah.gnu.org/hgweb/octave/rev/b02d5a4c7452). Rather than explicitly call isnan() I changed the structure of the input validation tests. - elseif (base < 2 || base > length (symbols)) + elseif (! (base >= 2 && base <= length (symbols))) Because NaN never compares true to any number this elseif will now evaluate to ! 0 for a NaN and issue the necessary error message. Marking as fixed and closing report. _______________________________________________________ Reply to this item at: <http://savannah.gnu.org/bugs/?53477> _______________________________________________ Message sent via/by Savannah http://savannah.gnu.org/
[Prev in Thread] | Current Thread | [Next in Thread] |