changeset 3061:d46c0991b1f1 octave-forge

Replace variable size arrays with OCTAVE_LOCAL_BUFFER
author goffioul
date Tue, 06 Feb 2007 09:41:26 +0000
parents f07d2a617a6d
children f991c9c73fdf
files main/fixed/src/ov-fixed-cx-mat.cc main/fixed/src/ov-fixed-mat.cc
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/main/fixed/src/ov-fixed-cx-mat.cc	Tue Feb 06 09:33:35 2007 +0000
+++ b/main/fixed/src/ov-fixed-cx-mat.cc	Tue Feb 06 09:41:26 2007 +0000
@@ -619,7 +619,7 @@
   if (group_hid < 0 ) return false;
 
   dim_vector d = dims ();
-  hsize_t hdims[d.length () > 2 ? d.length () : 3];
+  OCTAVE_LOCAL_BUFFER(hsize_t, hdims, d.length () > 2 ? d.length () : 3);
   hid_t space_hid = -1, data_hid = -1, type_hid = -1;
   int rank = ( (d (0) == 1) && (d.length () == 2) ? 1 : d.length ());
   bool retval = true;
--- a/main/fixed/src/ov-fixed-mat.cc	Tue Feb 06 09:33:35 2007 +0000
+++ b/main/fixed/src/ov-fixed-mat.cc	Tue Feb 06 09:41:26 2007 +0000
@@ -576,7 +576,7 @@
   if (group_hid < 0 ) return false;
 
   dim_vector d = dims ();
-  hsize_t hdims[d.length () > 2 ? d.length () : 3];
+  OCTAVE_LOCAL_BUFFER(hsize_t, hdims, d.length () > 2 ? d.length () : 3);
   hid_t space_hid = -1, data_hid = -1;
   int rank = ( (d (0) == 1) && (d.length () == 2) ? 1 : d.length ());
   bool retval = true;