summaryrefslogtreecommitdiff
path: root/tests/lib/memrange-test.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/lib/memrange-test.c')
-rw-r--r--tests/lib/memrange-test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/lib/memrange-test.c b/tests/lib/memrange-test.c
index f5922066df..557ade4c89 100644
--- a/tests/lib/memrange-test.c
+++ b/tests/lib/memrange-test.c
@@ -529,7 +529,7 @@ static void test_memrange_steal(void **state)
ALIGN_DOWN(res_mock[READONLY_TAG].base, MEMRANGE_ALIGN));
assert_int_equal(
range_entry_end(ptr),
- ALIGN_UP(range_entry_base(ptr) + res_mock[READONLY_TAG].size,
+ ALIGN_UP(res_mock[READONLY_TAG].base + res_mock[READONLY_TAG].size,
MEMRANGE_ALIGN));
}
count++;