diff src/DLD-FUNCTIONS/strfind.cc @ 10258:e317791645c4

64-bit fixes
author John W. Eaton <jwe@octave.org>
date Wed, 03 Feb 2010 15:27:53 -0500
parents 2e4fc7fdba15
children 4d1fc073fbb7
line wrap: on
line diff
--- a/src/DLD-FUNCTIONS/strfind.cc	Wed Feb 03 06:34:29 2010 -0500
+++ b/src/DLD-FUNCTIONS/strfind.cc	Wed Feb 03 15:27:53 2010 -0500
@@ -132,7 +132,8 @@
     }
 
   octave_idx_type nmatch = accum.size ();
-  Array<octave_idx_type> result (dim_vector (std::min (1, nmatch), nmatch));
+  octave_idx_type one = 1;
+  Array<octave_idx_type> result (dim_vector (std::min (one, nmatch), nmatch));
   octave_idx_type k = 0;
   for (std::deque<octave_idx_type>::const_iterator iter = accum.begin (); 
        iter != accum.end (); iter++)