mirror of
https://github.com/konsoletyper/teavm.git
synced 2025-01-24 10:44:13 +08:00
Fix bug in ValueEmitter.cast with primitives
This commit is contained in:
parent
dd00dd4c78
commit
bb927e3a35
@ -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());
|
||||
|
Loading…
Reference in New Issue
Block a user