diff options
author | dim <dim@FreeBSD.org> | 2014-02-07 21:17:20 +0000 |
---|---|---|
committer | dim <dim@FreeBSD.org> | 2014-02-07 21:17:20 +0000 |
commit | 5830d897a44e62baa0155763099eb3e9c72a267f (patch) | |
tree | fc5e5a09646c5bfa963ebec8b87e664859ff5ac6 /contrib/libc++/include | |
parent | cd00db34cceff03dccb8cec79669b6afbb9da527 (diff) | |
download | FreeBSD-src-5830d897a44e62baa0155763099eb3e9c72a267f.zip FreeBSD-src-5830d897a44e62baa0155763099eb3e9c72a267f.tar.gz |
Apply a cleaner solution for the sign warnings that can occur when
compiling libc++'s <locale> header with -Wsystem-headers on.
This has also been submitted upstream.
Reported by: asomers
Diffstat (limited to 'contrib/libc++/include')
-rw-r--r-- | contrib/libc++/include/locale | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/contrib/libc++/include/locale b/contrib/libc++/include/locale index 55c14a6..cdfe120 100644 --- a/contrib/libc++/include/locale +++ b/contrib/libc++/include/locale @@ -1012,7 +1012,7 @@ num_get<_CharT, _InputIterator>::__do_get_signed(iter_type __b, iter_type __e, unsigned __dc = 0; for (; __b != __e; ++__b) { - if (__a_end - __a == (long)__buf.size()) + if (__a_end == __a + __buf.size()) { size_t __tmp = __buf.size(); __buf.resize(2*__buf.size()); @@ -1062,7 +1062,7 @@ num_get<_CharT, _InputIterator>::__do_get_unsigned(iter_type __b, iter_type __e, unsigned __dc = 0; for (; __b != __e; ++__b) { - if (__a_end - __a == (long)__buf.size()) + if (__a_end == __a + __buf.size()) { size_t __tmp = __buf.size(); __buf.resize(2*__buf.size()); @@ -1116,7 +1116,7 @@ num_get<_CharT, _InputIterator>::__do_get_floating_point(iter_type __b, iter_typ char __exp = 'E'; for (; __b != __e; ++__b) { - if (__a_end - __a == (long)__buf.size()) + if (__a_end == __a + __buf.size()) { size_t __tmp = __buf.size(); __buf.resize(2*__buf.size()); @@ -1166,7 +1166,7 @@ num_get<_CharT, _InputIterator>::do_get(iter_type __b, iter_type __e, unsigned __dc = 0; for (; __b != __e; ++__b) { - if (__a_end - __a == (long)__buf.size()) + if (__a_end == __a + __buf.size()) { size_t __tmp = __buf.size(); __buf.resize(2*__buf.size()); |