aboutsummaryrefslogtreecommitdiff
path: root/compiler.d
diff options
context:
space:
mode:
Diffstat (limited to 'compiler.d')
-rw-r--r--compiler.d3
1 files changed, 3 insertions, 0 deletions
diff --git a/compiler.d b/compiler.d
index 9ae009d..1ef18c9 100644
--- a/compiler.d
+++ b/compiler.d
@@ -443,6 +443,9 @@ class Compiler {
this.func.chunk.writeOp(to!ubyte(3), args[0].line); // | [ fn ] [ list ] [ item ] [ acc ] [ fn ]
this.func.chunk.writeOp(OpCode.OP_ROTATE_N, args[0].line);
this.func.chunk.writeOp(to!ubyte(3), args[0].line); // | [ fn ] [ list ] [ fn ] [ item ] [ acc ]
+ this.func.chunk.writeOp(OpCode.OP_ROTATE_N, args[0].line);
+ this.func.chunk.writeOp(to!ubyte(2), args[0].line); // | [ fn ] [ list ] [ fn ] [ acc ] [ item ]
+
// call the function
this.func.chunk.writeOp(OpCode.OP_CALL, args[0].line);