includes/std: Fixed std::mem::eof() not working correctly with non-zero base addresses

This commit is contained in:
Nik
2023-07-13 12:08:25 +02:00
committed by GitHub
parent 75b2c7be7e
commit 4587b465d4

View File

@@ -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());
};
/**