Mercurial > hg > octave-nkf
comparison 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 |
comparison
equal
deleted
inserted
replaced
12437:a754c2d8a13f | 12438:ab4c6bbff14a |
---|---|
611 static std::string | 611 static std::string |
612 strip_trailing_separators (const std::string& dir_arg) | 612 strip_trailing_separators (const std::string& dir_arg) |
613 { | 613 { |
614 std::string dir = dir_arg; | 614 std::string dir = dir_arg; |
615 | 615 |
616 octave_idx_type k = dir.length (); | 616 size_t k = dir.length (); |
617 | |
617 while (k > 1 && file_ops::is_dir_sep (dir[k-1])) | 618 while (k > 1 && file_ops::is_dir_sep (dir[k-1])) |
618 k--; | 619 k--; |
619 | 620 |
620 if (k < dir.length ()) | 621 if (k < dir.length ()) |
621 dir.resize (k); | 622 dir.resize (k); |