[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #46660] object array writing into class member
From: |
Lachlan Andrew |
Subject: |
[Octave-bug-tracker] [bug #46660] object array writing into class member alters another class member |
Date: |
Tue, 28 Jun 2016 08:53:07 +0000 (UTC) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:43.0) Gecko/20100101 Firefox/43.0 |
Update of bug #46660 (project octave):
Status: Confirmed => Patch Submitted
Assigned to: None => lachlan
_______________________________________________________
Follow-up Comment #2:
The attached patch seems to fix the problem.
The issue was that Array<T>::index (Array<idx_vector>&, bool resize_ok,...)
was being called with a an array of size 1, causing it to assume that the
array had to be extended. This caused it to create a new element, overwriting
the existing one.
Since the original code seemed to work when it was part of a script (I still
don't know why), I'm not sure if it is worth writing a BIST for this.
(file #37608)
_______________________________________________________
Additional Item Attachment:
File name: bug_46660_classdef_array.cset Size:1 KB
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?46660>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/