octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #62330] [octave forge] (mapping) degrees2dm fa


From: Philip Nienhuis
Subject: [Octave-bug-tracker] [bug #62330] [octave forge] (mapping) degrees2dm fails on NaN input
Date: Fri, 15 Jul 2022 10:58:43 -0400 (EDT)

Update of bug #62330 (project octave):

                  Status:         Patch Submitted => Fixed                  
             Assigned to:                    None => philipnienhuis         
             Open/Closed:                    Open => Closed                 

    _______________________________________________________

Follow-up Comment #4:

After applying the patch, I get this error at L.90 (nn = ! isnan (dm(:,
1));):

## Pressing <F9> after selecting L.90:
debug> nn = ! isnan (dm(:, 1))
nn = 0
debug>   ## Pressing 'Step' button
error: invalid conversion from NaN to logical
error: called from
    degrees2dm at line 90 column 10


The code looks OK to me and executes correctly as seen above.

Hmmmm, removing the space between '!' and 'isnan' leads to correct execution
of the code.

And after restarting Octave the original patched code (w space between ! and
isnan) also executes fine.

I pushed the cset here:
http://hg.code.sf.net/p/octave/mapping/rev/9ef7a6ac0656
and added a BIST for that case here:
http://hg.code.sf.net/p/octave/mapping/rev/a9e52842884c

Thanks for the patch and other actions.
Closing report.


    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?62330>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]