Merge pull request #8979 from ntrel/path-for

Fix ref foreach range variable
This commit is contained in:
Dennis 2024-04-15 19:03:44 +02:00 committed by GitHub
commit 2fd8aae438
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -3397,7 +3397,7 @@ do
else
{
C[] pattmp;
foreach (ref pi; 0 .. pattern.length)
for (size_t pi = 0; pi < pattern.length; pi++)
{
const pc = pattern[pi];
switch (pc)