summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authortake_cheeze <[email protected]>2013-11-26 11:43:39 +0900
committertake_cheeze <[email protected]>2013-11-26 11:43:39 +0900
commitccc22d7b099305fedb46e6b988199e130489558f (patch)
treeb79c988058f213936955c9c58e529efd96666aa7 /src
parent9b4b2e7c529a13273389bf96e030adaed7ae6909 (diff)
downloadmruby-ccc22d7b099305fedb46e6b988199e130489558f.tar.gz
mruby-ccc22d7b099305fedb46e6b988199e130489558f.zip
move debug record size assertion to correct position
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;
}