Skip to content
This repository was archived by the owner on Oct 12, 2022. It is now read-only.

Commit ed1adbe

Browse files
Merge pull request #2382 from thewilsonator/fix_deprecations
fix size_t index deprecation
2 parents 023fac9 + 19aca5d commit ed1adbe

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/rt/minfo.d

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ struct ModuleGroup
125125
break;
126126
distloop:
127127
// search for next (previous) module in cycle.
128-
foreach (int m, d; distance)
128+
foreach (m, d; distance)
129129
{
130130
if (d == curdist)
131131
{
@@ -470,7 +470,7 @@ struct ModuleGroup
470470
// pre-allocate enough space to hold all modules.
471471
ctors = (cast(immutable(ModuleInfo)**).malloc(len * (void*).sizeof));
472472
ctoridx = 0;
473-
foreach (int idx, m; _modules)
473+
foreach (idx, m; _modules)
474474
{
475475
if (m.flags & relevantFlags)
476476
{
@@ -582,8 +582,8 @@ struct ModuleGroup
582582
}
583583

584584
// initialize the initial edges
585-
foreach (int i, ref v; initialEdges)
586-
v = i;
585+
foreach (i, ref v; initialEdges)
586+
v = cast(int)i;
587587

588588
bool sort(ref immutable(ModuleInfo)*[] ctors, uint mask)
589589
{

0 commit comments

Comments
 (0)