summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/dump.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/dump.c b/src/dump.c
index 6f6063500..f1fc56d8e 100644
--- a/src/dump.c
+++ b/src/dump.c
@@ -547,8 +547,6 @@ write_debug_record_1(mrb_state *mrb, mrb_irep *irep, uint8_t *bin, mrb_sym const
ret = cur - bin;
uint32_to_bin(ret, bin);
- mrb_assert((cur - bin) == (int)get_debug_record_size(mrb, irep));
-
return ret;
}
@@ -565,6 +563,8 @@ write_debug_record(mrb_state *mrb, mrb_irep *irep, uint8_t *bin, mrb_sym const*
bin += len;
size += len;
}
+
+ mrb_assert(size == (int)get_debug_record_size(mrb, irep));
return size;
}