ImHex-Patterns
ImHex-Patterns copied to clipboard
relative_to_parent doesn't seem to be relative to parent.
relative_to_parent == relative_to_pointer.
I verified this by writing my own relative_to_parent that actually works and adding a debug print:
fn relative_to_parent_fixed(u128 address) {
std::print(addressof(parent) - $);
return addressof(parent.parent);
};
prints just zeroes
this is a known problem that seems to add extra parent scopes in places like templates and attribute functions. You can make it work by adding an extra parent but the underlying bug should be fixed instead.