Skip to content

Commit a3cfa46

Browse files
committed
Fix a bug when nchunks is larger then 1
1 parent 799ab2d commit a3cfa46

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/shuffler.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,8 @@ void Shuffler::finalize()
4848
count++;
4949
if (count == nchunks)
5050
break;
51-
}
52-
fout.write((char *)&e, sizeof(edge_t));
51+
} else
52+
fout.write((char *)&e, sizeof(edge_t));
5353
}
5454
}
5555
rep (i, nchunks)

0 commit comments

Comments
 (0)