diff src/ov-mapper.cc @ 5275:23b37da9fd5b

[project @ 2005-04-08 16:07:35 by jwe]
author jwe
date Fri, 08 Apr 2005 16:07:37 +0000
parents 7c3b22bafedc
children 5bdc3f24cd5f
line wrap: on
line diff
--- a/src/ov-mapper.cc
+++ b/src/ov-mapper.cc
@@ -43,9 +43,9 @@
 static bool
 any_element_less_than (const NDArray& a, double val)
 {
-  int len = a.length ();
+  octave_idx_type len = a.length ();
 
-  for (int i = 0; i < len; i++)
+  for (octave_idx_type i = 0; i < len; i++)
     {
       OCTAVE_QUIT;
 
@@ -59,9 +59,9 @@
 static bool
 any_element_greater_than (const NDArray& a, double val)
 {
-  int len = a.length ();
+  octave_idx_type len = a.length ();
 
-  for (int i = 0; i < len; i++)
+  for (octave_idx_type i = 0; i < len; i++)
     {
       OCTAVE_QUIT;
 
@@ -80,11 +80,11 @@
 #define MAPPER_LOOP_2(T, F, M, CONV, R) \
   do \
     { \
-      int len = M.length (); \
+      octave_idx_type len = M.length (); \
  \
       T result (M.dims ()); \
  \
-      for (int i = 0; i < len; i++) \
+      for (octave_idx_type i = 0; i < len; i++) \
 	{ \
           OCTAVE_QUIT; \
  \