codegen.c: negative zero equals to positive zero.

`OP_LOADI Rn -0` should be `OP_LOADI_0`.
parent cdf54f31
......@@ -2663,6 +2663,9 @@ codegen(codegen_scope *s, node *tree, int val)
int off = new_litbn(s, p, base, TRUE);
genop_2(s, OP_LOADL, cursp(), off);
}
else if (i == 0) {
genop_1(s, OP_LOADI_0, cursp());
}
else {
i = -i;
if (i == -1) genop_1(s, OP_LOADI__1, cursp());
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment