aboutsummaryrefslogtreecommitdiff
path: root/divvy.c
diff options
context:
space:
mode:
Diffstat (limited to 'divvy.c')
-rw-r--r--divvy.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/divvy.c b/divvy.c
index 92b159a..61b04eb 100644
--- a/divvy.c
+++ b/divvy.c
@@ -611,7 +611,7 @@ DSF *divvy_rectangle_attempt(int w, int h, int k, random_state *rs)
assert(own[i] >= 0 && own[i] < n);
tmp[own[i]] = i;
}
- retdsf = snew_dsf(wh);
+ retdsf = dsf_new(wh);
for (i = 0; i < wh; i++) {
dsf_merge(retdsf, i, tmp[own[i]]);
}
@@ -621,7 +621,7 @@ DSF *divvy_rectangle_attempt(int w, int h, int k, random_state *rs)
* the ominoes really are k-ominoes and we haven't
* accidentally split one into two disconnected pieces.
*/
- tmpdsf = snew_dsf(wh);
+ tmpdsf = dsf_new(wh);
for (y = 0; y < h; y++)
for (x = 0; x+1 < w; x++)
if (own[y*w+x] == own[y*w+(x+1)])