Don't make assumptions about address format

This commit is contained in:
Vestral 2025-03-19 12:23:23 +09:00
parent 06e2324809
commit ac276eae62

View file

@ -574,7 +574,6 @@ namespace stx
}
// Random checks which may fail on invalid pointer
ensure((reinterpret_cast<u64>(r.d()->destroy.load()) - 0x10000) >> 47 == 0);
ensure((r.d()->refs++ - 1) >> 58 == 0);
return r;
}