mirror of
https://github.com/Eaglercraft-TeaVM-Fork/eagler-teavm.git
synced 2025-01-03 05:44:10 -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);
|
value = castToInteger(sourceSubtype);
|
||||||
}
|
}
|
||||||
NumericOperandType sourceNumeric = convertToNumeric(sourceKind);
|
NumericOperandType sourceNumeric = convertToNumeric(sourceKind);
|
||||||
NumericOperandType targetNumeric = convertToNumeric(sourceKind);
|
NumericOperandType targetNumeric = convertToNumeric(targetKind);
|
||||||
|
|
||||||
CastNumberInstruction insn = new CastNumberInstruction(sourceNumeric, targetNumeric);
|
CastNumberInstruction insn = new CastNumberInstruction(sourceNumeric, targetNumeric);
|
||||||
insn.setValue(value.getVariable());
|
insn.setValue(value.getVariable());
|
||||||
|
|
Loading…
Reference in New Issue
Block a user