From 85da6235fb7b808e711c9f3f562dff246a625287 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Sat, 4 May 2024 17:55:01 +0900 Subject: fix: table.copy --- src/Execution/Runtime.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/Execution/Runtime.php b/src/Execution/Runtime.php index 08600e5..58e2169 100644 --- a/src/Execution/Runtime.php +++ b/src/Execution/Runtime.php @@ -1765,7 +1765,7 @@ final class Runtime $s_ = ($d < $s) ? ($s + $i) : ($s + $n - 1 - $i); $d_ = ($d < $s) ? ($d + $i) : ($d + $n - 1 - $i); // @phpstan-ignore-next-line - $tabX->elem[$d] = $tabY->elem[$s]; + $tabX->elem[$d_] = $tabY->elem[$s_]; } } -- cgit v1.2.3-70-g09d2