aboutsummaryrefslogtreecommitdiff
path: root/interpreter/Elymas.pm
diff options
context:
space:
mode:
Diffstat (limited to 'interpreter/Elymas.pm')
-rw-r--r--interpreter/Elymas.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/interpreter/Elymas.pm b/interpreter/Elymas.pm
index eb514fa..2661f5b 100644
--- a/interpreter/Elymas.pm
+++ b/interpreter/Elymas.pm
@@ -84,6 +84,7 @@ sub compileCode {
if(ref($t->[1]) eq 'ARRAY' and $t->[1]->[0] eq 'func') {
if(not $t->[1]->[2]) {
# untyped function, just call, no need to go through execute
+ $ret .= "\$i = $i;\n";
$ret .= "push \@globalCallStack, \$code[$i];\n";
$ret .= "&{\$code[$i]->[0]}(\$data, \$lscope);\n";
$ret .= "pop \@globalCallStack;\n";