MEMORY: Fixed IsMyAddress bound error (GetEndAddr returns an inclusive value)

This commit is contained in:
Michael Yu 2014-05-19 14:58:01 -07:00
parent 4c02c20d84
commit 85785b471e
1 changed files with 1 additions and 1 deletions

View File

@ -87,7 +87,7 @@ MemoryBlock* MemoryBlock::SetRange(const u64 start, const u32 size)
bool MemoryBlock::IsMyAddress(const u64 addr)
{
return mem && addr >= GetStartAddr() && addr < GetEndAddr();
return mem && addr >= GetStartAddr() && addr <= GetEndAddr();
}
template <typename T>