diff src/ov-cx-diag.cc @ 10815:0eb323b71957

simplify narrowing of diagonal matrices
author Jaroslav Hajek <highegg@gmail.com>
date Fri, 23 Jul 2010 08:20:39 +0200
parents 57a59eae83cc
children fd0a3ac60b0e
line wrap: on
line diff
--- a/src/ov-cx-diag.cc
+++ b/src/ov-cx-diag.cc
@@ -78,8 +78,7 @@
 
   if (matrix.nelem () == 1)
     {
-      // FIXME: the proxy mechanism of DiagArray2 causes problems here.
-      retval = new octave_complex (Complex (matrix (0, 0)));
+      retval = new octave_complex (matrix (0, 0));
       octave_base_value *rv2 = retval->try_narrowing_conversion ();
       if (rv2)
         {