Skip to content

Commit 273c508

Browse files
committed
fix MultiwayMerge
1 parent 65e0563 commit 273c508

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

source/mir/algorithm/setops.d

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,12 +76,13 @@ struct MultiwayMerge(alias less, RangeOfRanges)
7676
auto temp = ror.lightScope;
7777
for (;!temp.empty;)
7878
{
79-
if (!temp.empty)
79+
if (!temp.front.empty)
8080
{
8181
temp.popFront;
8282
continue;
8383
}
84-
move(temp.back, temp.front);
84+
import mir.utility: swap;
85+
swap(temp.back, temp.front);
8586
temp.popBack;
8687
ror.popBack;
8788
}

0 commit comments

Comments
 (0)