[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #39789] Error while indexing certain cell expr
From: |
Lachlan Andrew |
Subject: |
[Octave-bug-tracker] [bug #39789] Error while indexing certain cell expressions |
Date: |
Wed, 16 Dec 2015 01:18:23 +0000 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:41.0) Gecko/20100101 Firefox/41.0 |
Follow-up Comment #4, bug #39789 (project octave):
It is even easier to resolve, although I'm not sure if the resolution is
correct :)
For some reason, the function
Array<T>::index (const Array<idx_vector>& ia, bool resize_ok, const T& rfv)
const
had two checks that the dimension of ia matches that of this. First, it
correctly expands trailing singletons, but in the second check it doesn't.
My current work-around is to do the second test only if a resize occurs, but
since I'm not sure why the test is needed at all, that may not be the right
response.
This also avoids the problem of bug #35841 directly, and so the attached
changeset backs that fix out (while keeping the changes to tests).
(file #35756)
_______________________________________________________
Additional Item Attachment:
File name: bug_39789.cset Size:2 KB
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?39789>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Octave-bug-tracker] [bug #39789] Error while indexing certain cell expressions,
Lachlan Andrew <=