diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2020-09-22 10:58:23 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2020-10-12 18:20:28 +0900 |
| commit | 041351fb05d1e12b74d9fd99796fb47b0b26a886 (patch) | |
| tree | 624283219dcfbbbb4539e4ce2e6186b971b72329 /src/dump.c | |
| parent | 34356974eeccb9b86541df7f43da0429a43b940f (diff) | |
| download | mruby-041351fb05d1e12b74d9fd99796fb47b0b26a886.tar.gz mruby-041351fb05d1e12b74d9fd99796fb47b0b26a886.zip | |
No need to get the `irep` record size twice.
Diffstat (limited to 'src/dump.c')
| -rw-r--r-- | src/dump.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/dump.c b/src/dump.c index 511ee3664..db7d5ad0b 100644 --- a/src/dump.c +++ b/src/dump.c @@ -323,11 +323,6 @@ write_irep_record(mrb_state *mrb, const mrb_irep *irep, uint8_t *bin, size_t *ir return MRB_DUMP_INVALID_IREP; } - *irep_record_size = get_irep_record_size_1(mrb, irep); - if (*irep_record_size == 0) { - return MRB_DUMP_GENERAL_FAILURE; - } - bin += write_irep_header(mrb, irep, bin); /* * The catch handler table is after iseq block, but the number of |
