base: addr range: slight change to validity check

The validity check is being changed from < to <= since the end of the range
is considered to be a part of it.
This commit is contained in:
Nilay Vaish 2014-10-11 15:02:22 -05:00
parent a9bfea5a35
commit 2816521f0d

View file

@ -58,6 +58,7 @@ class AddrRange
private: private:
/// Private fields for the start and end of the range /// Private fields for the start and end of the range
/// Both _start and _end are part of the range.
Addr _start; Addr _start;
Addr _end; Addr _end;
@ -166,7 +167,7 @@ class AddrRange
/** /**
* Determine if the range is valid. * Determine if the range is valid.
*/ */
bool valid() const { return _start < _end; } bool valid() const { return _start <= _end; }
/** /**
* Get the start address of the range. * Get the start address of the range.