Skip to content

Commit

Permalink
Fixed a bug where some constants defined with const/high16 were getti…
Browse files Browse the repository at this point in the history
…ng inlined with a wrong value.
  • Loading branch information
docteau committed Oct 15, 2013
1 parent 7e5a1f4 commit c4e3799
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dare/decompiler/src/tyde/translator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,7 @@ void Translator::AddTaoOpcodeAndRef(const TydeInstruction* ins) {
|| opcode == OP_CONST || opcode == OP_CONST_HIGH16) {
if (ins->destination().type.IsIntSubtype()) {
s4 constant = (s4) ins->constant();
if (CanInlineIntegerLiteral(constant)) {
if (opcode != OP_CONST_HIGH16 && CanInlineIntegerLiteral(constant)) {
AddIconst((s2) constant);
} else {
out_ << LDC;
Expand Down

0 comments on commit c4e3799

Please sign in to comment.