Mercurial > hg > octave-max
diff src/pt-assign.cc @ 8905:24dd61b36591
assign rvalue1 result to octave_value object, not octave_value_list object
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Tue, 03 Mar 2009 14:02:20 -0500 |
parents | 73c4516fae10 |
children | 35cd375d4bb3 |
line wrap: on
line diff
--- a/src/pt-assign.cc +++ b/src/pt-assign.cc @@ -184,9 +184,6 @@ return retval; } -// FIXME -- this works, but it would look a little better if -// it were broken up into a couple of separate functions. - octave_value tree_simple_assignment::rvalue1 (int) { @@ -200,12 +197,10 @@ if (rhs) { - octave_value_list tmp = rhs->rvalue1 (); + octave_value rhs_val = rhs->rvalue1 (); - if (! (error_state || tmp.empty ())) + if (! error_state) { - octave_value rhs_val = tmp(0); - if (rhs_val.is_undefined ()) { error ("value on right hand side of assignment is undefined");