diff src/ov-struct.cc @ 8564:b0f803b5ce41

more indexing fixes
author Jaroslav Hajek <highegg@gmail.com>
date Thu, 22 Jan 2009 13:27:47 +0100
parents 906f976d35a8
children 7e0f36dfefbe
line wrap: on
line diff
--- a/src/ov-struct.cc	Thu Jan 22 13:26:04 2009 +0100
+++ b/src/ov-struct.cc	Thu Jan 22 13:27:47 2009 +0100
@@ -332,7 +332,7 @@
 
                         if (! tmp.is_defined () || tmp.is_zero_by_zero ())
                           {
-                            tmp = octave_value::empty_conv (type.substr (1), rhs);
+                            tmp = octave_value::empty_conv (next_type, rhs);
                             tmp.make_unique (); // probably a no-op.
                           }
                         else