ds/dllist: sentinels are always addresses

This commit is contained in:
Nathaniel Filardo
2020-05-18 16:40:29 +00:00
parent 7e4d6916e0
commit a1704a82e1

View File

@@ -17,7 +17,7 @@ namespace snmalloc
* are always the same, invalid pointer values with different sentinels are
* always different.
*/
template<uintptr_t OtherSentinel>
template<address_t OtherSentinel>
constexpr bool operator==(const InvalidPointer<OtherSentinel>&)
{
return Sentinel == OtherSentinel;
@@ -27,7 +27,7 @@ namespace snmalloc
* are always the same, invalid pointer values with different sentinels are
* always different.
*/
template<uintptr_t OtherSentinel>
template<address_t OtherSentinel>
constexpr bool operator!=(const InvalidPointer<OtherSentinel>&)
{
return Sentinel != OtherSentinel;