diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2013-11-25 19:41:15 -0800 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2013-11-25 19:41:15 -0800 |
| commit | 0f9d287ba487f6d39f5cf389bbdcaf86eb88ec79 (patch) | |
| tree | b79c988058f213936955c9c58e529efd96666aa7 /src | |
| parent | f5bd87b9e6d0d8a84cf866b4847c1416e4f5c622 (diff) | |
| parent | ccc22d7b099305fedb46e6b988199e130489558f (diff) | |
| download | mruby-0f9d287ba487f6d39f5cf389bbdcaf86eb88ec79.tar.gz mruby-0f9d287ba487f6d39f5cf389bbdcaf86eb88ec79.zip | |
Merge pull request #1597 from take-cheeze/mrbcfile
debug record size assertion fail
Diffstat (limited to 'src')
| -rw-r--r-- | src/dump.c | 4 |
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; } |
