diff src/Cell.cc @ 5275:23b37da9fd5b

[project @ 2005-04-08 16:07:35 by jwe]
author jwe
date Fri, 08 Apr 2005 16:07:37 +0000
parents e35b034d3523
children 4c8a2e4e0717
line wrap: on
line diff
--- a/src/Cell.cc	Thu Apr 07 21:51:37 2005 +0000
+++ b/src/Cell.cc	Fri Apr 08 16:07:37 2005 +0000
@@ -32,13 +32,13 @@
 Cell::Cell (const string_vector& sv)
   : ArrayN<octave_value> ()
 {
-  int n = sv.length ();
+  octave_idx_type n = sv.length ();
 
   if (n > 0)
     {
       resize (dim_vector (n, 1));
 
-      for (int i = 0; i < n; i++)
+      for (octave_idx_type i = 0; i < n; i++)
 	elem(i,0) = sv[i];
     }
 }
@@ -48,7 +48,7 @@
 {
   Cell retval;
 
-  int n = idx_arg.length ();
+  octave_idx_type n = idx_arg.length ();
 
   switch (n)
     {
@@ -79,7 +79,7 @@
       {
 	Array<idx_vector> iv (n);
 
-	for (int i = 0; i < n; i++)
+	for (octave_idx_type i = 0; i < n; i++)
 	  {
 	    iv(i) = idx_arg(i).index_vector ();
 
@@ -101,7 +101,7 @@
 	      const octave_value& fill_val)
 
 {
-  for (int i = 0; i < idx_arg.length (); i++)
+  for (octave_idx_type i = 0; i < idx_arg.length (); i++)
     set_index (idx_arg(i).index_vector ());
 
   ::assign (*this, rhs, fill_val);
@@ -110,20 +110,20 @@
 }
 
 Cell
-Cell::concat (const Cell& rb, const Array<int>& ra_idx)
+Cell::concat (const Cell& rb, const Array<octave_idx_type>& ra_idx)
 {
   return insert (rb, ra_idx);
 }
 
 Cell&
-Cell::insert (const Cell& a, int r, int c)
+Cell::insert (const Cell& a, octave_idx_type r, octave_idx_type c)
 {
   Array<octave_value>::insert (a, r, c);
   return *this;
 }
 
 Cell&
-Cell::insert (const Cell& a, const Array<int>& ra_idx)
+Cell::insert (const Cell& a, const Array<octave_idx_type>& ra_idx)
 {
   Array<octave_value>::insert (a, ra_idx);
   return *this;