Skip to content

Commit

Permalink
Merge pull request dlang#8979 from ntrel/path-for
Browse files Browse the repository at this point in the history
Fix ref foreach range variable
  • Loading branch information
dkorpel authored Apr 15, 2024
2 parents c489361 + 655a1e4 commit 2fd8aae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion std/path.d
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 2fd8aae

Please sign in to comment.