Fix bug in ValueEmitter.cast with primitives

This commit is contained in:
Alexey Andreev 2015-08-02 16:44:31 +03:00
parent dd00dd4c78
commit bb927e3a35

View File

@ -707,7 +707,7 @@ public class ValueEmitter {
value = castToInteger(sourceSubtype);
}
NumericOperandType sourceNumeric = convertToNumeric(sourceKind);
NumericOperandType targetNumeric = convertToNumeric(sourceKind);
NumericOperandType targetNumeric = convertToNumeric(targetKind);
CastNumberInstruction insn = new CastNumberInstruction(sourceNumeric, targetNumeric);
insn.setValue(value.getVariable());