diff liboctave/Sparse.cc @ 5766:f3be83cff153

[project @ 2006-04-18 15:17:34 by jwe]
author jwe
date Tue, 18 Apr 2006 15:18:22 +0000
parents 7ba9ad1fec11
children ace8d8d26933
line wrap: on
line diff
--- a/liboctave/Sparse.cc
+++ b/liboctave/Sparse.cc
@@ -1894,9 +1894,7 @@
 		  retval = Sparse<T> (n, m, nnz ());
 		  octave_idx_type *ri = retval.xridx ();
 	      
-		  // Can't use OCTAVE_LOCAL_BUFFER with bool, and so 
-		  // can't with T either
-		  T X [n];
+		  std::vector<T> X (n);
 		  for (octave_idx_type i = 0; i < nr; i++)
 		    itmp [i] = -1;
 		  for (octave_idx_type i = 0; i < n; i++)