mirror of
https://github.com/Eaglercraft-TeaVM-Fork/eagler-teavm.git
synced 2024-12-22 08:14:09 -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