[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #30289] save/load does not restore a variable
From: |
Jaroslav Hajek |
Subject: |
[Octave-bug-tracker] [bug #30289] save/load does not restore a variable created with ones() |
Date: |
Wed, 30 Jun 2010 13:53:53 +0000 |
User-agent: |
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.9) Gecko/20100317 SUSE/3.5.9-0.1.1 Firefox/3.5.9 |
Follow-up Comment #4, bug #30289 (project octave):
A fix is online:
http://hg.savannah.gnu.org/hgweb/octave/rev/d899b2ee6a37
The solution is to simply store length in place of limit when increment is
zero, and handle it when loading. This will ensure backward load
compatibility, and non-const ranges will also be saved in a compatible
manner.
I think this patch could apply to 3.2.4, though I haven't tried.
A workaround is to convert the ranges to regular arrays prior to saving.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?30289>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/