diff --git a/backends/platform/psp/psploader.h b/backends/platform/psp/psploader.h index cd65dc38bdf..70022d65dea 100644 --- a/backends/platform/psp/psploader.h +++ b/backends/platform/psp/psploader.h @@ -66,7 +66,7 @@ public: return (Elf32_Addr)(_startAddress - _origAddress); } bool inSegment(char *addr) { - return ((char *)addr >= _startAddress && (char *)addr < _startAddress + _size); + return ((char *)addr >= _startAddress && (char *)addr <= _startAddress + _size); } };