diff options
Diffstat (limited to 'src/base')
-rw-r--r-- | src/base/addr_range.hh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/base/addr_range.hh b/src/base/addr_range.hh index 7f275e5a9..df4afab9e 100644 --- a/src/base/addr_range.hh +++ b/src/base/addr_range.hh @@ -58,6 +58,7 @@ class AddrRange private: /// Private fields for the start and end of the range + /// Both _start and _end are part of the range. Addr _start; Addr _end; @@ -166,7 +167,7 @@ class AddrRange /** * 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. |