diff options
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | compile.c | 2 |
2 files changed, 5 insertions, 1 deletions
@@ -1,3 +1,7 @@ +Wed Dec 5 14:25:11 2007 Koichi Sasada <ko1@atdot.net> + + * compile.c (iseq_compile_each): fix typo. + Wed Dec 5 13:41:25 2007 Nobuyoshi Nakada <nobu@ruby-lang.org> * parse.y (yycompile): get rid of tracing while parsing. @@ -3338,7 +3338,7 @@ iseq_compile_each(rb_iseq_t *iseq, LINK_ANCHOR *ret, NODE * node, int poped) ADD_SEQ(ret, args); } else { - argc = FIX2INT(0); + argc = INT2FIX(0); } ADD_INSN1(ret, nd_line(node), dupn, INT2FIX(FIX2INT(argc)+1)); ADD_SEND_R(ret, nd_line(node), ID2SYM(idAREF), argc, Qfalse, LONG2FIX(flag)); |