RangeFilter: make boundaries inclusive
Change-Id: Iecf7de565053bcd99a19a02722adcef458f5550b
This commit is contained in:
@ -47,7 +47,7 @@ public:
|
|||||||
* \c false otherwise
|
* \c false otherwise
|
||||||
*/
|
*/
|
||||||
bool isValidInstr(address_t ip, char const *instr) const
|
bool isValidInstr(address_t ip, char const *instr) const
|
||||||
{ return (beginAddress < ip && ip < endAddress); }
|
{ return (beginAddress <= ip && ip <= endAddress); }
|
||||||
private:
|
private:
|
||||||
address_t beginAddress; //<! the beginning of the address range
|
address_t beginAddress; //<! the beginning of the address range
|
||||||
address_t endAddress; //<! the end of the address range
|
address_t endAddress; //<! the end of the address range
|
||||||
|
|||||||
Reference in New Issue
Block a user