[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #58617] cell2struct silently truncates char ma
From: |
Rik |
Subject: |
[Octave-bug-tracker] [bug #58617] cell2struct silently truncates char matrices |
Date: |
Fri, 19 Jun 2020 16:14:05 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; rv:11.0) like Gecko |
Follow-up Comment #3, bug #58617 (project octave):
There are problems all the way down the line. The cellstr_value() function
that is getting called is in ov-cell.cc. It contains two return statements
which is grammatically incorrect for C++. Only the first has any effect, and
I don't know why there isn't a warning during compilation about this.
Array<std::string>
octave_cell::cellstr_value (void) const
{
Array<std::string> retval;
if (! iscellstr ())
error ("invalid conversion from cell array to array of strings");
if (cellstr_cache->isempty ())
*cellstr_cache = matrix.cellstr_value ();
return *cellstr_cache;
return retval;
}
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?58617>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/