summaryrefslogtreecommitdiffhomepage
path: root/src/codegen.c
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2013-03-30 04:50:21 -0700
committerYukihiro "Matz" Matsumoto <[email protected]>2013-03-30 04:50:21 -0700
commite0ba717d2c8064c987cb3044b1fc61d3a98617ca (patch)
tree6803b00c56eea10234013cf9d10cca0433a85a28 /src/codegen.c
parent99af3183aa71882bd611a5c3b35eedc98663f201 (diff)
parentc260ef894e5dde74caa2baf8d381292c08c6cff1 (diff)
downloadmruby-e0ba717d2c8064c987cb3044b1fc61d3a98617ca.tar.gz
mruby-e0ba717d2c8064c987cb3044b1fc61d3a98617ca.zip
Merge pull request #1108 from monaka/pr-cleanup-numeric.c-20130329
Cleanup numeric.c
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 e5b1802a1..b8909e809 100644
--- a/src/codegen.c
+++ b/src/codegen.c
@@ -1868,7 +1868,7 @@ codegen(codegen_scope *s, node *tree, int val)
mrb_value str = mrb_str_buf_new(mrb, 4);
mrb_str_buf_cat(mrb, str, "$", 1);
- mrb_str_buf_append(mrb, str, mrb_fix2str(mrb, fix, 10));
+ 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));
push();