diff src/DLD-FUNCTIONS/find.cc @ 5275:23b37da9fd5b

[project @ 2005-04-08 16:07:35 by jwe]
author jwe
date Fri, 08 Apr 2005 16:07:37 +0000
parents 89cddd966068
children 4c8a2e4e0717
line wrap: on
line diff
--- a/src/DLD-FUNCTIONS/find.cc	Thu Apr 07 21:51:37 2005 +0000
+++ b/src/DLD-FUNCTIONS/find.cc	Fri Apr 08 16:07:37 2005 +0000
@@ -39,11 +39,11 @@
 {
   octave_value_list retval (((nargout == 0) ? 1 : nargout), Matrix ());
 
-  int count = 0;
+  octave_idx_type count = 0;
 
-  int nel = nda.nelem ();
+  octave_idx_type nel = nda.nelem ();
 
-  for (int i = 0; i < nel; i++)
+  for (octave_idx_type i = 0; i < nel; i++)
     {
       OCTAVE_QUIT;
 
@@ -55,8 +55,8 @@
   // the overall indices to be returned.  But see below for scalar
   // case...
 
-  int result_nr = count;
-  int result_nc = 1;
+  octave_idx_type result_nr = count;
+  octave_idx_type result_nc = 1;
 
   bool scalar_arg = false;
 
@@ -79,12 +79,12 @@
     {
       count = 0;
 
-      int nr = nda.rows ();
+      octave_idx_type nr = nda.rows ();
 
-      int i = 0;
-      int j = 0;
+      octave_idx_type i = 0;
+      octave_idx_type j = 0;
 
-      for (int k = 0; k < nel; k++)
+      for (octave_idx_type k = 0; k < nel; k++)
 	{
 	  OCTAVE_QUIT;