aboutsummaryrefslogtreecommitdiff
path: root/pearl.c
diff options
context:
space:
mode:
authorSimon Tatham <anakin@pobox.com>2023-04-20 13:56:44 +0100
committerSimon Tatham <anakin@pobox.com>2023-04-20 17:22:23 +0100
commitf21c7d27664bc43d3e5a9401756860c03055c3aa (patch)
tree132993b10b21f8be6e559174c50a3ac12b5901fe /pearl.c
parent11a8149d673d96bec17d6487b5fa95b5bf5ffd6b (diff)
downloadpuzzles-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 'pearl.c')
-rw-r--r--pearl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pearl.c b/pearl.c
index cf610e1..ef2cd0a 100644
--- a/pearl.c
+++ b/pearl.c
@@ -349,7 +349,7 @@ static int pearl_solve(int w, int h, char *clues, char *result,
* We maintain a dsf of connected squares, together with a
* count of the size of each equivalence class.
*/
- dsf = snewn(w*h, int);
+ dsf = snew_dsf(w*h);
dsfsize = snewn(w*h, int);
/*