summaryrefslogtreecommitdiff
path: root/libstdc++-v3/include/tr1
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2018-08-16 18:16:33 +0100
committerJonathan Wakely <redi@gcc.gnu.org>2018-08-16 18:16:33 +0100
commit0ac40f61860d1d4ec29b0c72e22bf9c957f58fd0 (patch)
treed830e7eddffd40502277d427708c0e973c18b07f /libstdc++-v3/include/tr1
parent10fcc1429cfad8b453712fe55319807769fa6370 (diff)
downloadgcc-0ac40f61860d1d4ec29b0c72e22bf9c957f58fd0.tar.gz
Fix warning with -Wsign-compare -Wsystem-headers
* include/tr1/legendre_function.tcc (__sph_legendre): Avoid warning about signed/unsigned comparison. From-SVN: r263596
Diffstat (limited to 'libstdc++-v3/include/tr1')
-rw-r--r--libstdc++-v3/include/tr1/legendre_function.tcc2
1 files changed, 1 insertions, 1 deletions
diff --git a/libstdc++-v3/include/tr1/legendre_function.tcc b/libstdc++-v3/include/tr1/legendre_function.tcc
index 85ca7969f5b..e75414c5296 100644
--- a/libstdc++-v3/include/tr1/legendre_function.tcc
+++ b/libstdc++-v3/include/tr1/legendre_function.tcc
@@ -284,7 +284,7 @@ namespace tr1
_Tp __y_lm = _Tp(0);
// Compute Y_l^m, l > m+1, upward recursion on l.
- for ( int __ll = __m + 2; __ll <= __l; ++__ll)
+ for (unsigned int __ll = __m + 2; __ll <= __l; ++__ll)
{
const _Tp __rat1 = _Tp(__ll - __m) / _Tp(__ll + __m);
const _Tp __rat2 = _Tp(__ll - __m - 1) / _Tp(__ll + __m - 1);