Skip to content

Commit bf019c1

Browse files
committed
working dev branch
1 parent 83c78fa commit bf019c1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/algorithms/controllers/msort_arr_bup.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,7 @@ export function run_msort() {
383383

384384
}
385385
//vis.arrayC.set(c, 'msort_arr_bup');
386-
vis.array.setList(runlength);
386+
//vis.array.setList(runlength);
387387

388388
//set_simple_stack(vis.arrayB, runlength);
389389
//vis.array.showKth(runlength);
@@ -657,7 +657,7 @@ export function run_msort() {
657657
/*for (let i = pre_left; i <= pre_right; i++) {
658658
unhighlight(vis, i, false);
659659
}*/
660-
if (left < size) {
660+
if (cur_left < size) {
661661
assignVarToA(vis, 'left', cur_left);
662662
}
663663
/*for (let i = left; i <= left + runlength - 1; i++) {

0 commit comments

Comments
 (0)