[committed] libstdc++: Fix -Wsign-compare warnings in bits/hashtable_policy.h
Jonathan Wakely
jwakely@redhat.com
Thu Dec 12 23:23:17 GMT 2024
libstdc++-v3/ChangeLog:
* include/bits/hashtable_policy.h (_Local_iterator_base): Fix
-Wsign-compare warnings.
---
Tested x86_64-linux. Pushed to trunk.
libstdc++-v3/include/bits/hashtable_policy.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/libstdc++-v3/include/bits/hashtable_policy.h b/libstdc++-v3/include/bits/hashtable_policy.h
index f2260f3926d..6769399bd4d 100644
--- a/libstdc++-v3/include/bits/hashtable_policy.h
+++ b/libstdc++-v3/include/bits/hashtable_policy.h
@@ -1302,12 +1302,12 @@ namespace __detail
_Local_iterator_base&
operator=(const _Local_iterator_base& __iter)
{
- if (_M_bucket_count != -1)
+ if (_M_bucket_count != size_t(-1))
_M_destroy();
this->_M_cur = __iter._M_cur;
_M_bucket = __iter._M_bucket;
_M_bucket_count = __iter._M_bucket_count;
- if (_M_bucket_count != -1)
+ if (_M_bucket_count != size_t(-1))
_M_init(*__iter._M_h());
return *this;
}
--
2.47.1
More information about the Libstdc++
mailing list