mirror of
https://github.com/Atmosphere-NX/Atmosphere-libs.git
synced 2025-06-21 19:12:42 +02:00
util: remove spurious error in parent offset calc
This commit is contained in:
parent
8fce9ea672
commit
b797024896
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user