diff liboctave/Array.cc @ 8379:ad8ed668e0a4

allow initialized local buffers
author Jaroslav Hajek <highegg@gmail.com>
date Sat, 06 Dec 2008 09:15:44 +0100
parents 25bc2d31e1bf
children 49901b624316
line wrap: on
line diff
--- a/liboctave/Array.cc
+++ b/liboctave/Array.cc
@@ -1915,10 +1915,7 @@
     }
   else
     {
-      // Don't use OCTAVE_LOCAL_BUFFER here as it doesn't work with bool
-      // on some compilers.
-      Array<T> vi (ns);
-      T *pvi = vi.fortran_vec ();
+      OCTAVE_LOCAL_BUFFER (T, pvi, ns);
 
       for (octave_idx_type j = 0; j < iter; j++) 
 	{