aboutsummaryrefslogtreecommitdiff
path: root/vm.d
diff options
context:
space:
mode:
Diffstat (limited to 'vm.d')
-rw-r--r--vm.d4
1 files changed, 2 insertions, 2 deletions
diff --git a/vm.d b/vm.d
index 8ac1934..4cb03f5 100644
--- a/vm.d
+++ b/vm.d
@@ -511,8 +511,8 @@ class VM {
cnt--;
}
- foreach (Value val ; tmp) {
- this.pushB(val);
+ for (int i = to!int(tmp.length) - 1; i >= 0; i--) {
+ this.pushB(tmp[i]);
}
//if (!callValue(peekA(argCount), argCount)) { // i'm allocating variables wrong