mirror of
git://git.tartarus.org/simon/puzzles.git
synced 2025-04-20 23:51:29 -07:00
Consistently use snew_dsf to allocate dsfs.
All remaining cases where a dsf was allocated via snewn(foo, int) are removed by this change.
This commit is contained in:
@ -407,7 +407,7 @@ static void make_board(int *board, int w, int h, random_state *rs) {
|
||||
* contains a shuffled list of numbers {0, ..., sz-1}. */
|
||||
for (i = 0; i < sz; ++i) board[i] = i;
|
||||
|
||||
dsf = snewn(sz, int);
|
||||
dsf = snew_dsf(sz);
|
||||
retry:
|
||||
dsf_init(dsf, sz);
|
||||
shuffle(board, sz, sizeof (int), rs);
|
||||
|
Reference in New Issue
Block a user