diff options
author | Jonathan Wakely <jwakely@redhat.com> | 2023-08-09 11:28:56 +0100 |
---|---|---|
committer | Jonathan Wakely <jwakely@redhat.com> | 2023-08-09 15:19:16 +0100 |
commit | 9bd194434acb47fac80aad45ed04039e0535d1fe (patch) | |
tree | 3bd02ed6538488909f1c2b22b62e5b63cd7b0c4c | |
parent | 798b1f04762c84b7cf38c4af5aba1b52823864ba (diff) | |
download | gcc-9bd194434acb47fac80aad45ed04039e0535d1fe.zip gcc-9bd194434acb47fac80aad45ed04039e0535d1fe.tar.gz gcc-9bd194434acb47fac80aad45ed04039e0535d1fe.tar.bz2 |
libstdc++: Fix a -Wsign-compare warning in std::list
libstdc++-v3/ChangeLog:
* include/bits/list.tcc (list::sort(Cmp)): Fix -Wsign-compare
warning for loop condition.
-rw-r--r-- | libstdc++-v3/include/bits/list.tcc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libstdc++-v3/include/bits/list.tcc b/libstdc++-v3/include/bits/list.tcc index 3e5b1f7..344386a 100644 --- a/libstdc++-v3/include/bits/list.tcc +++ b/libstdc++-v3/include/bits/list.tcc @@ -654,7 +654,7 @@ _GLIBCXX_BEGIN_NAMESPACE_CONTAINER { // Move all nodes back into *this. __carry._M_put_all(end()._M_node); - for (int __i = 0; __i < sizeof(__tmp)/sizeof(__tmp[0]); ++__i) + for (size_t __i = 0; __i < sizeof(__tmp)/sizeof(__tmp[0]); ++__i) __tmp[__i]._M_put_all(end()._M_node); __throw_exception_again; } |