diff src/pt-unop.cc @ 9607:1be3c73ed7b5

reuse temporary arrays in nested expressions
author Jaroslav Hajek <highegg@gmail.com>
date Thu, 03 Sep 2009 08:48:51 +0200
parents eb63fbe60fab
children d33a318c1de4
line wrap: on
line diff
--- a/src/pt-unop.cc	Thu Sep 03 06:59:53 2009 +0200
+++ b/src/pt-unop.cc	Thu Sep 03 08:48:51 2009 +0200
@@ -89,7 +89,7 @@
 
 	  if (! error_state && val.is_defined ())
 	    {
-	      retval = ::do_unary_op (etype, val);
+	      retval = val.do_non_const_unary_op (etype);
 
 	      if (error_state)
 		retval = octave_value ();