aboutsummaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/org/shedlang/compiler/patio/PatioCodeGen.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main/java/org/shedlang/compiler/patio/PatioCodeGen.java b/src/main/java/org/shedlang/compiler/patio/PatioCodeGen.java
index 9e0b652a..c0d52b54 100644
--- a/src/main/java/org/shedlang/compiler/patio/PatioCodeGen.java
+++ b/src/main/java/org/shedlang/compiler/patio/PatioCodeGen.java
@@ -22,6 +22,9 @@ public class PatioCodeGen {
case PushBoolInstruction pushBool ->
P.vector(new PatioPushInt(pushBool.value() ? 1 : 0, pushBool.source()));
+ case PushIntInstruction pushInt ->
+ P.vector(new PatioPushInt(pushInt.value().intValueExact(), pushInt.source()));
+
case PushUnitInstruction pushUnit ->
P.vector(new PatioPushInt(0, pushUnit.source()));