summaryrefslogtreecommitdiffhomepage
path: root/src/codegen.c
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2014-03-09 03:16:28 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2014-03-09 03:16:28 +0900
commit4f27089b4ad915b7bda151a49694dcc8fbb4a2fc (patch)
tree1b245362973ffc134a277085ab29a924dcbac920 /src/codegen.c
parent6423011986aca8e71508a8ffe6df823e44c196bd (diff)
parentbc663549eae0d16a2adb0cb0b1b68d34befe501c (diff)
downloadmruby-4f27089b4ad915b7bda151a49694dcc8fbb4a2fc.tar.gz
mruby-4f27089b4ad915b7bda151a49694dcc8fbb4a2fc.zip
Merge branch 'master' of github.com:mruby/mruby
Diffstat (limited to 'src/codegen.c')
-rw-r--r--src/codegen.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/codegen.c b/src/codegen.c
index 700cfdbf8..71849f172 100644
--- a/src/codegen.c
+++ b/src/codegen.c
@@ -1915,7 +1915,7 @@ codegen(codegen_scope *s, node *tree, int val)
mrb_value fix = mrb_fixnum_value((intptr_t)tree);
mrb_value str = mrb_str_buf_new(mrb, 4);
- mrb_str_buf_cat(mrb, str, "$", 1);
+ mrb_str_cat_lit(mrb, str, "$");
mrb_str_buf_append(mrb, str, mrb_fixnum_to_str(mrb, fix, 10));
sym = new_sym(s, mrb_intern_str(mrb, str));
genop(s, MKOP_ABx(OP_GETGLOBAL, cursp(), sym));