Mercurial > hg > octave-nkf
diff src/ov-float.h @ 10544:9961fc022d9d
fix assignment to non-existing variables and octave_value::assign
author | Jaroslav Hajek <highegg@gmail.com> |
---|---|
date | Fri, 23 Apr 2010 11:23:43 +0200 |
parents | f3b65e1ae355 |
children | 654fbde5dceb |
line wrap: on
line diff
--- a/src/ov-float.h +++ b/src/ov-float.h @@ -72,7 +72,7 @@ // We return an octave_matrix here instead of an octave_float_scalar so // that in expressions like A(2,2,2) = 2 (for A previously // undefined), A will be empty instead of a 1x1 object. - octave_base_value *empty_clone (void) const { return new octave_matrix (); } + octave_base_value *empty_clone (void) const { return new octave_float_matrix (); } octave_value do_index_op (const octave_value_list& idx, bool resize_ok = false);