From: Vadim Egorov Date: Tue, 2 May 2000 07:11:03 +0000 (+0000) Subject: 2000-05-01 Vadim Egorov X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=01f9a995439f103f158a5444c1f8a2b779f426cf;p=gcc.git 2000-05-01 Vadim Egorov * bits/char_traits.h: Fix parameter types. * bits/string.tcc: Avoid traits_type::move. From-SVN: r33607 --- diff --git a/libstdc++-v3/bits/char_traits.h b/libstdc++-v3/bits/char_traits.h index ae46dd29add..50b51b8bd5a 100644 --- a/libstdc++-v3/bits/char_traits.h +++ b/libstdc++-v3/bits/char_traits.h @@ -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;