diff src/load-path.cc @ 12438:ab4c6bbff14a

use correct type for std::string length
author John W. Eaton <jwe@octave.org>
date Fri, 11 Feb 2011 14:27:26 -0500
parents 12df7854fa7c
children 7a5aacf65f81
line wrap: on
line diff
--- a/src/load-path.cc	Thu Feb 10 18:48:36 2011 -0500
+++ b/src/load-path.cc	Fri Feb 11 14:27:26 2011 -0500
@@ -613,7 +613,8 @@
 {
   std::string dir = dir_arg;
 
-  octave_idx_type k = dir.length ();
+  size_t k = dir.length ();
+
   while (k > 1 && file_ops::is_dir_sep (dir[k-1]))
     k--;