From b97967ab660243b723f246db03c2e4a82e125f3f Mon Sep 17 00:00:00 2001 From: Kimplul Date: Sun, 7 Jul 2024 07:02:46 +0300 Subject: simplify assertions + No real point having multiple different levels of assertions, just say you assert something and be done with it --- src/regions.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/regions.c') diff --git a/src/regions.c b/src/regions.c index f098f4f..60cab23 100644 --- a/src/regions.c +++ b/src/regions.c @@ -664,7 +664,7 @@ stat_t clone_region(struct vmem *b, struct vmem *g, vm_t from, vm_t to, align_region(from, bytes, &from, &from_size); align_region(to, bytes, &to, &to_size); - catastrophic_assert(from_size == to_size); + assert(from_size == to_size); bytes = from_size; while (bytes) { @@ -694,7 +694,7 @@ stat_t copy_region(struct vmem *b, struct vmem *g, vm_t from, vm_t to, align_region(from, bytes, &from, &from_size); align_region(to, bytes, &to, &to_size); - catastrophic_assert(from_size == to_size); + assert(from_size == to_size); bytes = from_size; while (bytes) { -- cgit v1.3