mirror of
https://github.com/WerWolv/ImHex-Patterns.git
synced 2026-03-30 13:05:23 -05:00
includes/std: Fixed std::mem::eof() not working correctly with non-zero base addresses
This commit is contained in:
@@ -46,7 +46,7 @@ namespace std::mem {
|
||||
@return True if the cursor is at the end of the memory
|
||||
*/
|
||||
fn eof() {
|
||||
return $ >= std::mem::size();
|
||||
return $ >= (std::mem::base_address() + std::mem::size());
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user