diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2012-10-28 10:45:43 -0700 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2012-10-28 10:45:43 -0700 |
| commit | c6c4da8c484e0e3ba748806b6616ca165fafe562 (patch) | |
| tree | d107739348c6be69a84c68efe8efe28f888385c7 /src/codegen.c | |
| parent | d7d5c15b54e764497aa69667d3e5d849469eb373 (diff) | |
| parent | 15f46a1feba74cba4f25ec99df79a3f1e07b0b09 (diff) | |
| download | mruby-c6c4da8c484e0e3ba748806b6616ca165fafe562.tar.gz mruby-c6c4da8c484e0e3ba748806b6616ca165fafe562.zip | |
Merge pull request #510 from masuidrive/master
define convert method mrb_int/mrb_float with C string
Diffstat (limited to 'src/codegen.c')
| -rw-r--r-- | src/codegen.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/codegen.c b/src/codegen.c index 7c3182599..ebc9b32de 100644 --- a/src/codegen.c +++ b/src/codegen.c @@ -1741,7 +1741,7 @@ codegen(codegen_scope *s, node *tree, int val) case NODE_FLOAT: if (val) { char *p = (char*)tree; - mrb_float f = readfloat(p); + mrb_float f = str_to_mrb_float(p); int off = new_lit(s, mrb_float_value(f)); genop(s, MKOP_ABx(OP_LOADL, cursp(), off)); @@ -1757,7 +1757,7 @@ codegen(codegen_scope *s, node *tree, int val) case NODE_FLOAT: { char *p = (char*)tree; - mrb_float f = readfloat(p); + mrb_float f = str_to_mrb_float(p); int off = new_lit(s, mrb_float_value(-f)); genop(s, MKOP_ABx(OP_LOADL, cursp(), off)); |
