diff options
| author | Kimplul <kimi.h.kuparinen@gmail.com> | 2024-07-07 07:02:46 +0300 |
|---|---|---|
| committer | Kimplul <kimi.h.kuparinen@gmail.com> | 2024-07-07 07:02:46 +0300 |
| commit | b97967ab660243b723f246db03c2e4a82e125f3f (patch) | |
| tree | d30ef3f9dbbc33453c868282b749018659fb6a6b /src/regions.c | |
| parent | 122374c362ba8bb9082385da3c82e264ab594f15 (diff) | |
| download | kmi-b97967ab660243b723f246db03c2e4a82e125f3f.tar.gz kmi-b97967ab660243b723f246db03c2e4a82e125f3f.zip | |
simplify assertions
+ No real point having multiple different levels of assertions, just say
you assert something and be done with it
Diffstat (limited to 'src/regions.c')
| -rw-r--r-- | src/regions.c | 4 |
1 files changed, 2 insertions, 2 deletions
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) { |
