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

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

[Octave-bug-tracker] [bug #51633] Empty indexing of struct returns empty


From: Rik
Subject: [Octave-bug-tracker] [bug #51633] Empty indexing of struct returns empty struct array
Date: Fri, 11 Aug 2017 11:26:05 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:54.0) Gecko/20100101 Firefox/54.0

Update of bug #51633 (project octave):

                  Status:               Confirmed => Fixed                  
             Open/Closed:                    Open => Closed                 

    _______________________________________________________

Follow-up Comment #10:

This was a simple fix.  Unlike other data types, the struct do_index_op
function was not checking the length of the index list for the special case
where it was 0 (empty).  I changed that and added a test for it here
http://hg.savannah.gnu.org/hgweb/octave/rev/1b232c0c19e6.

I also checked the other data types and they seem to work, except possibly for
objects where the subsref routine is often overloaded.  I'll ask a question
about that on the Maintainer's list.

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?51633>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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