diff options
Diffstat (limited to 'src/commonlib/region.c')
-rw-r--r-- | src/commonlib/region.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/commonlib/region.c b/src/commonlib/region.c index 4153f0a47d..fbc6276e96 100644 --- a/src/commonlib/region.c +++ b/src/commonlib/region.c @@ -10,10 +10,10 @@ int region_is_subregion(const struct region *p, const struct region *c) if (region_offset(c) < region_offset(p)) return 0; - if (region_end(c) > region_end(p)) + if (region_last(c) > region_last(p)) return 0; - if (region_end(c) < region_offset(c)) + if (region_last(c) < region_offset(c)) return 0; return 1; |