aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--core/mem_region.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/mem_region.c b/core/mem_region.c
index 0b2961d..0051ea6 100644
--- a/core/mem_region.c
+++ b/core/mem_region.c
@@ -548,12 +548,12 @@ bool mem_check(const struct mem_region *region)
struct free_hdr *f;
/* Check it's sanely aligned. */
- if (region->start % sizeof(struct alloc_hdr)) {
+ if (region->start % sizeof(long)) {
prerror("Region '%s' not sanely aligned (%llx)\n",
region->name, (unsigned long long)region->start);
return false;
}
- if ((long)region->len % sizeof(struct alloc_hdr)) {
+ if ((long)region->len % sizeof(long)) {
prerror("Region '%s' not sane length (%llu)\n",
region->name, (unsigned long long)region->len);
return false;