mirror of
https://github.com/WerWolv/ImHex-Patterns.git
synced 2026-03-28 07:47:02 -05:00
includes/std: Fixed std::ptr functions calculating base wrong
This commit is contained in:
@@ -1,15 +1,15 @@
|
||||
namespace std::ptr {
|
||||
|
||||
fn relative_to_pointer(u128 offset) {
|
||||
return $ + offset;
|
||||
return $;
|
||||
};
|
||||
|
||||
fn relative_to_parent(u128 offset) {
|
||||
return addressof(parent) + offset;
|
||||
return addressof(parent);
|
||||
};
|
||||
|
||||
fn relative_to_end(u128 offset) {
|
||||
return std::mem::size() - offset;
|
||||
return std::mem::size() - offset * 2;
|
||||
};
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user