libstdc++: Fix -Wsign-compare warnings in bits/hashtable_policy.h

libstdc++-v3/ChangeLog:

	* include/bits/hashtable_policy.h (_Local_iterator_base): Fix
	-Wsign-compare warnings.
This commit is contained in:
Jonathan Wakely 2024-12-12 21:07:08 +00:00 committed by Jonathan Wakely
parent 9306960694
commit 8f122894ee
No known key found for this signature in database

View file

@ -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;
}