1
0
Fork 0
mirror of https://github.com/Atmosphere-NX/Atmosphere.git synced 2024-12-24 03:06:17 +00:00

util: remove spurious error in parent offset calc

This commit is contained in:
Michael Scire 2020-01-31 02:03:34 -08:00
parent b2b1129cc0
commit 00b093ec62

View file

@ -83,10 +83,6 @@ namespace ams::util {
const auto start = std::addressof(cur_union.data.members[0]);
const auto next = GetNextAddress(start, target);
if constexpr (Offset > 0x10) {
__builtin_unreachable();
}
if (next != target) {
if constexpr (Offset < sizeof(MemberType) - 1) {
return OffsetOfImpl(member, cur_union.next_union);