Simplify MRB_WITHOUT_FLOAT condtion

This commit is contained in:
Yukihiro "Matz" Matsumoto
2017-11-08 08:45:59 +09:00
parent 37f6e42293
commit 7ae20e0785
+2 -3
View File
@@ -2271,8 +2271,9 @@ codegen(codegen_scope *s, node *tree, int val)
genop(s, MKOP_ABx(OP_LOADL, cursp(), off));
}
else {
else
#endif
{
if (i < MAXARG_sBx && i > -MAXARG_sBx) {
co = MKOP_AsBx(OP_LOADI, cursp(), i);
}
@@ -2281,9 +2282,7 @@ codegen(codegen_scope *s, node *tree, int val)
co = MKOP_ABx(OP_LOADL, cursp(), off);
}
genop(s, co);
#ifndef MRB_WITHOUT_FLOAT
}
#endif
push();
}
break;