]> gcc.gnu.org Git - gcc.git/commitdiff
2000-05-01 Vadim Egorov <egorovv@@mailandnews.com>
authorVadim Egorov <egorovv@@mailandnews.com>
Tue, 2 May 2000 07:11:03 +0000 (07:11 +0000)
committerBenjamin Kosnik <bkoz@gcc.gnu.org>
Tue, 2 May 2000 07:11:03 +0000 (07:11 +0000)
        * bits/char_traits.h: Fix parameter types.
        * bits/string.tcc: Avoid traits_type::move.

From-SVN: r33607

libstdc++-v3/bits/char_traits.h

index ae46dd29addb444976bd70c66115af1fd8b65c48..50b51b8bd5aaa948060a3cac8ec1cfdabe5008ca 100644 (file)
@@ -244,7 +244,7 @@ namespace std {
       static int 
       compare(const char_type* __s1, const char_type* __s2, size_t __n)
       { 
-       for (int_type __i = 0; __i < __n; ++__i)
+       for (size_t __i = 0; __i < __n; ++__i)
          if (!eq(__s1[__i], __s2[__i]))
            return lt(__s1[__i], __s2[__i]) ? -1 : 1;
        return 0; 
This page took 0.062163 seconds and 5 git commands to generate.