Mercurial > hg > octave-terminal
changeset 12515:88d1134bb095
ov-float.cc (octave_float_scalar::do_index_op): widen to float matrix, not double matrix
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Fri, 18 Mar 2011 00:01:28 -0400 |
parents | e5e66c389597 |
children | 3d6584617da0 |
files | src/ChangeLog src/ov-float.cc |
diffstat | 2 files changed, 6 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2011-03-17 John W. Eaton <jwe@octave.org> + + * ov-float.cc (octave_float_scalar::do_index_op): Widen to float + matrix, not double. + 2010-03-17 Rik <octave@nomad.inbox5.com> * syscalls.cc (gethostname): Redo documentation string.
--- a/src/ov-float.cc +++ b/src/ov-float.cc @@ -69,7 +69,7 @@ // 1x1 matrix back to a scalar value. Need a better solution // to this problem. - octave_value tmp (new octave_matrix (matrix_value ())); + octave_value tmp (new octave_float_matrix (float_matrix_value ())); return tmp.do_index_op (idx, resize_ok); }