diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2014-02-26 22:41:25 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2014-02-26 22:41:25 +0900 |
| commit | 14948710a95a163baf2689273407c3ca47aee86c (patch) | |
| tree | 0c896c3822f00c3b8c7db3ebedeb3820d52c3445 /src | |
| parent | cc3921385663f686ea094e699f8c70d9dbc52afd (diff) | |
| parent | 4c283714f68a2a09ab731e53e0f6f7cf7502a3be (diff) | |
| download | mruby-14948710a95a163baf2689273407c3ca47aee86c.tar.gz mruby-14948710a95a163baf2689273407c3ca47aee86c.zip | |
Merge pull request #1752 from cubicdaiya/issues/use_mrb_str_new_lit2
Use mrb_str_new_lit instead of mrb_str_new for C string literal
Diffstat (limited to 'src')
| -rw-r--r-- | src/vm.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1342,7 +1342,7 @@ mrb_context_run(mrb_state *mrb, struct RProc *proc, mrb_value self, unsigned int goto L_RAISE; } if (mrb->c->prev->ci == mrb->c->prev->cibase) { - mrb_value exc = mrb_exc_new_str(mrb, E_RUNTIME_ERROR, mrb_str_new(mrb, "double resume", 13)); + mrb_value exc = mrb_exc_new_str(mrb, E_RUNTIME_ERROR, mrb_str_new_lit(mrb, "double resume")); mrb->exc = mrb_obj_ptr(exc); goto L_RAISE; } |
