diff src/ov-float.cc @ 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 12df7854fa7c
children 72c96de7a403
line wrap: on
line diff
--- 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);
 }