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

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

[Octave-bug-tracker] [bug #65712] sort over InF dimension coredumps


From: Arun Giridhar
Subject: [Octave-bug-tracker] [bug #65712] sort over InF dimension coredumps
Date: Wed, 8 May 2024 15:51:57 -0400 (EDT)

Follow-up Comment #39, bug #65712 (group octave):

Oh now I see: there's a difference between stable and the other two for dim =
-inf:

On default and bytecode_interpreter:

octave:2> sort ([1 2; 3 4], -inf)
error: sort: DIM must be a positive scalar integer


On stable:

octave:2> sort ([1 2; 3 4], -inf)
ans =
   1   2
   3   4


Can't see why. The checks in Array-base.cc *already* trap the dim < 0 case, so
apparently dim = -inf isn't being caught by that condition? But only on
stable, not default.


    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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