mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
mruby-compiler: fixed a bug in string literal merge; fix #6491
This commit is contained in:
@@ -838,7 +838,7 @@ merge_op_string(codegen_scope *s, uint16_t dst, uint16_t b1, uint16_t b2, const
|
||||
struct mrb_insn_data data = mrb_decode_insn(i);
|
||||
if (data.insn == OP_STRING) {
|
||||
if (data.b == b1) used |= 1;
|
||||
else if (data.b == b2) used |= 2;
|
||||
if (data.b == b2) used |= 2;
|
||||
}
|
||||
switch (i[0]) {
|
||||
case OP_EXT1:
|
||||
|
||||
Reference in New Issue
Block a user