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

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

[Octave-bug-tracker] [bug #63935] error during evaluation of conditional


From: John W. Eaton
Subject: [Octave-bug-tracker] [bug #63935] error during evaluation of conditional in if
Date: Fri, 17 Mar 2023 19:17:44 -0400 (EDT)

Follow-up Comment #9, bug #63935 (project octave):

I introduced this error in https://hg.octave.org/octave/rev/7781b1e77406

The following change should fix it.


diff --git a/libinterp/parse-tree/pt-binop.cc
b/libinterp/parse-tree/pt-binop.cc
--- a/libinterp/parse-tree/pt-binop.cc
+++ b/libinterp/parse-tree/pt-binop.cc
@@ -156,6 +156,8 @@ tree_braindead_shortcircuit_binary_expre
 
           return octave_value (result);
         }
+      else
+        return tree_binary_expression::evaluate (tw);
     }
 
   return octave_value ();




    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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