diff liboctave/Array-util.cc @ 11574:a83bad07f7e3

attempt better backward compatibility for Array resize functions
author John W. Eaton <jwe@octave.org>
date Thu, 20 Jan 2011 00:12:05 -0500
parents 57632dea2446
children 12df7854fa7c
line wrap: on
line diff
--- a/liboctave/Array-util.cc	Wed Jan 19 20:29:11 2011 -0800
+++ b/liboctave/Array-util.cc	Thu Jan 20 00:12:05 2011 -0500
@@ -393,7 +393,7 @@
 
   int n_dims = dims.length ();
 
-  retval.resize (n_dims, 1);
+  retval.resize (dim_vector (n_dims, 1));
 
   for (int i = 0; i < n_dims; i++)
     retval(i) = 0;