diff options
| author | Simon Tatham <anakin@pobox.com> | 2023-04-20 13:56:44 +0100 |
|---|---|---|
| committer | Simon Tatham <anakin@pobox.com> | 2023-04-20 17:22:23 +0100 |
| commit | f21c7d27664bc43d3e5a9401756860c03055c3aa (patch) | |
| tree | 132993b10b21f8be6e559174c50a3ac12b5901fe /filling.c | |
| parent | 11a8149d673d96bec17d6487b5fa95b5bf5ffd6b (diff) | |
| download | puzzles-f21c7d27664bc43d3e5a9401756860c03055c3aa.zip puzzles-f21c7d27664bc43d3e5a9401756860c03055c3aa.tar.gz puzzles-f21c7d27664bc43d3e5a9401756860c03055c3aa.tar.bz2 puzzles-f21c7d27664bc43d3e5a9401756860c03055c3aa.tar.xz | |
Consistently use snew_dsf to allocate dsfs.
All remaining cases where a dsf was allocated via snewn(foo, int) are
removed by this change.
Diffstat (limited to 'filling.c')
| -rw-r--r-- | filling.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |