OSDN Git Service

2000-05-01 Vadim Egorov <egorovv@@mailandnews.com>
authorbkoz <bkoz@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 2 May 2000 07:11:03 +0000 (07:11 +0000)
committerbkoz <bkoz@138bc75d-0d04-0410-961f-82ee72b054a4>
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@33607 138bc75d-0d04-0410-961f-82ee72b054a4

libstdc++-v3/bits/char_traits.h

index ae46dd2..50b51b8 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;