diff options
| author | mryouse | 2023-05-25 02:52:11 +0000 |
|---|---|---|
| committer | mryouse | 2023-05-25 02:52:11 +0000 |
| commit | f90b882fe50d982293be5427457efea565173261 (patch) | |
| tree | 8e0e247aec6ab49beb33e96b80a2c620a54ff5cb /vm.d | |
| parent | e41f682a897950ec9454728ae6ba83c5a7973f98 (diff) | |
bugfix: when calling functions with multiple args, don't reverse them
Diffstat (limited to 'vm.d')
| -rw-r--r-- | vm.d | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |
