diff options
| author | Yukihiro Matsumoto <[email protected]> | 2012-10-20 03:32:02 +0900 |
|---|---|---|
| committer | Yukihiro Matsumoto <[email protected]> | 2012-10-20 03:32:02 +0900 |
| commit | 9bb6f0b3314d438e93ec79ae763ac57a559284bc (patch) | |
| tree | 95a783ace9f7c0da237e129e7da08f2d76421668 /src/dump.c | |
| parent | da637cac4a3520f7d6d9a69b392be4309f36ef5b (diff) | |
| download | mruby-9bb6f0b3314d438e93ec79ae763ac57a559284bc.tar.gz mruby-9bb6f0b3314d438e93ec79ae763ac57a559284bc.zip | |
pool string need not to convert
Diffstat (limited to 'src/dump.c')
| -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 516374cd9..c8f92ec72 100644 --- a/src/dump.c +++ b/src/dump.c @@ -354,9 +354,9 @@ write_pool_block(mrb_state *mrb, mrb_irep *irep, char *buf, int type) break; case MRB_TT_STRING: - str = mrb_string_value( mrb, &irep->pool[pool_no]); + str = irep->pool[pool_no]; len = str_dump_len(RSTRING_PTR(str), RSTRING_LEN(str), type); - if ( len > buf_size - 1) { + if (len > buf_size - 1) { buf_size = len + 1; if ((char_buf = (char *)mrb_realloc(mrb, char_buf, buf_size)) == 0) goto error_exit; |
