aboutsummaryrefslogtreecommitdiff
path: root/filling.c
diff options
context:
space:
mode:
Diffstat (limited to 'filling.c')
-rw-r--r--filling.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/filling.c b/filling.c
index 6814a1a..2164205 100644
--- a/filling.c
+++ b/filling.c
@@ -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);