diff liboctave/glob-match.h @ 11570:57632dea2446

attempt better backward compatibility for Array constructors
author John W. Eaton <jwe@octave.org>
date Wed, 19 Jan 2011 17:55:56 -0500
parents fd0a3ac60b0e
children 72c96de7a403
line wrap: on
line diff
--- a/liboctave/glob-match.h
+++ b/liboctave/glob-match.h
@@ -74,7 +74,7 @@
   {
     int n = str.length ();
 
-    Array<bool> retval (n, 1);
+    Array<bool> retval (dim_vector (n, 1));
 
     for (int i = 0; i < n; i++)
       retval(i) = match (str[i]);